Price is supply/demand. More housing usually came because of a huge population causing more demand. Population is almost like a force of gravity where dense places can never build enough because more always want to come.
The answer is actually less housing.
But house prices don't exist in isolation. A denser area will have better, higher paying, more specialized jobs, more options for entertainment/lifestyle, better access to just about everything. So the higher prices are worth it.