Once upon a time, you could get a 2 door Camry, and a station wagon Camry, and not just a 4 door. Same with the Corolla which had hatchbacks, wagon, sports versions, etc. 

This was cheap for companies to just change parts of the back of a car and using a lot of the same parts instead of having every model in just one configuration with its own name, marketing, sheet metal etc.

Oddly, only the Germans still do this with Audi, BMW and Mercedes and a lesser degree VW.