Apple devices are supported for a long time and are essentially cheaper than most Chinese offerings that cost less than half the price of an iPhone.
As for the price, small is expensive, and the cost per hour of use is not a lot. Also plenty of phones are much cheaper. The high-end mirror of consoles is a gaming PC.
In the phone business there are associated services too, but the hardware itself can be immensely profitable.
You can't wear your PS5 to flaunt how rich, current, stylish, trendy you are.
People are happy to shell out money for a status symbols. US practice of contract subsidizing the price of the phone helped it greatly, when even high schoolers could get it.
1. Platform exclusives.
2. It's cheaper than a computer.
Otherwise, it's a gimped computer that won't run most of the stuff you want and is difficult to use.
Putting out a new model every year will make your console significantly more expensive than getting a computer. If you raise the price to $1,000, it will make your console insanely more expensive than getting a computer.
People don't buy a new phone every year.
A lot of people buy $300 Android or previous generation iPhones.
A lot of people still do multi year contracts.
Most years the phones are just slightly updated versions of their predecessors, not complete new developments.
Console sometimes release updated versions as well.
Consoles need to be affordable for younger people.
Phone money is in hardware and micro-transactions. Console money is in game purchases. Consoles do best with a fresh slate every handful of years.
Besides that you're presupposing someone buys a new iPhone every year and that an iPhone doesn't have any more utility than a game console. Despite the capabilities of modern consoles they're mainly used for games and secondarily for streaming. For a not insignificant number of people their smartphone is their primary computing device. Smartphones are used for more and more often than gaming consoles. I also don't know a single person that buys a new iPhone every year. Even the most well off people I know that are iPhone fans upgrade only every other year.
Sony has had a weird history around backwards compatibility, Microsoft didn't really bother until the latest generation of their consoles, and Nintendo is pretty much allergic to the idea. Not only do consoles not do as much for people as smartphones but they require an investment in new games when you do upgrade.
You can say it's hard to find a PS5 at MSRP ($499 or $399 if digital) but it's still on a multi year (+5 at least) release cycle. Whereas the current iPhone generation (14) starts at $799 and $999. And next year you get a new one, and the next year another. And prices will increase too. I don't know the whole thing is just crazy to me.