I've never understood why they build (built) row houses like that. It's not like the US and Canada are lacking for space.
Answer: $$$$$$$$$$$$$$$$$$$$$
Land within (or close to) city limits is typically expensive and sought after, so to maximize profits and city tax dollars, they cram as many homes as possible into a given amount of land.