How is it even possible to buy a house/apartment in Switzerland?

So I came across this article and it's outstanding how the median wealth by age is not even close to the price of a house.

I know Switzerland is a country of renters, but has it always been like this? And if it wasn't, what the heck happened?

https://preview.redd.it/dy2kuxvjsw1e1.png?width=1256&format=png&auto=webp&s=a91cfab91ea536b10c94b3dea516def0af408583