They used tracks and recorded instruments and vocals separately and then engineered them together.
Thanks. I found some pictures of the smallish studio and what would now be considered recording gear at Motown.
What strikes me is how such a big sound came from those cramped quarters. As you said, with enough overdubbing of the tracks, a lot of audio magic can happen.