The cockpit of the 747 is on the upper deck, but the cockpit of the A380 is situated on the lower deck. Is there any reason (be it engineering or anything else) for the location of the cockpit?
Boeing actually never expected the 747 to be so successful. They thought supersonic aircraft were the future. But Boeing knew that an aircraft the size of a 747 would be great for the cargo market. So they designed one aircraft that could be easiy converted into a cargo version.
The cargo 747s can literally open their nose. It is quite impressive. To accomodate this, the cockpit needed to be on the upper deck. Hence the passenger version had the same requirement.