For some people, the walled garden and the “it just works” is a feature, when compared to the potential mine-field of building your own PC (or the increased cost of a pre built).
Some people have some money but not time, so a console a couch and a TV is easier to get into for the few hours a week they have.
Value for money, a build-your-own PC is better.
I don’t get why people buy iPhones. But if you go all-in on apple, the ecosystem is very attractive.