That is part of it. The bigger reason is fuel economy (of which aerodynamics is a part). There are also safety standards and manufacturing rechnologies that play into it.
There is only so much design freedom available within the rest of the restraints of safety and fuel economy.