With healthy competition product price is reduced almost to component cost. Not the case with Apple, sadly.
If nobody makes alternative Mac-like machines people want to buy for cheaper (or if Macs are seen as Veblen goods), that's a different matter.
But Apple doesn't charge $4000 for a MacBook Pro for lack of competition in the laptop space.
"But only Apple makes MBPs" is not an argument. Only Acer makes Acer machines, and only MS makes Surfaces too.
PC manufacturers only have themselves to blame for being low margin commodities.
Apple also makes macOS. Dell, Acer, and co are free to make their own OS. MS and Google already did. Heck, even some student in Helsinki did IIRC.
Can't blame Apple if people don't want their PC+generic OS bundle and prefer Mac+macOS.