Several things -
Nowadays, in general both spouses work. The market has adjusted to account for this extra income, so house prices are higher simply because people can afford more. Usetobe is right - our concept of “good life” requires two incomes or one really good one - but this is because there are so many more thing to buy. When I was a child (60’s) a phone was under $10 a month, and so was cable. No cell phones. Unless you were some prissy hi-fi expert, you had a moderately good stereo and if you were lucky, a colour TV. No DVD, no VHS, certainly no computer, internet, or smart phone. About 1970, IIRC, a VW Beetle went for about $2,000 and minimum wage was bout $1/hr.
The other factor bumping up prices today is low interest rates. The question is not “what can you afford?” but “what payment can you afford?”. With good mortgages I the neighbourhood of 3%, “what the market will bear” is a lot higher.
I see another factor, which I know worked for me. I bought an old home many years ago for $50,000 - then when I moved, sold it for $175,000. I’d paid off the mortgage long ago; heck, my new car when I moved cost more than that and I paid cash. I had some decent savings, having no mortgage for over a decade. I bought my new house for close to half a million, but I owe les than $200,000 on it. I suspect a lot of the upper end homebuyers are in the same boat - they are trading in their increased equity to trade up on their old house to a much better one, but not assuming anywhere near the full cost as debt. (Of course, this is the Canadian market. I understand thinks are a lot more in flux down south) Those who have this tradeup option drag the price up for everyone else.
I recall the very old rule that you should pay 25% of income for a house. Invert that with the assumption that the first few payments are almost all interest on a 25-year (typical) mortgage, and that says for example - a person making $40,000 should pay $10,000 a year for a house. That’s $800 a month, which if interest is 3% is $320,000; if interest is 5%, $192,000. I’ve also recall it going up to 33% and never really sure if they mean gross or take-home; plus the suggestion that in extreme markets (Toronto, Calgary, Vancouver) it might be 50%.
The other point is that many newer houses are a step above the tiny boxes you could buy decades ago, not to mention finishing amenities. Municipalities like big houses, they pay big taxes. I don’t recall seeing many new under-1,000sq.ft. fully detached houses for sale, but drive around the very old, less affluent neighbourhoods, and they built a lot of those during the war. So it’s a bit of an apples and watermelons comparison.