That definitely isn't the case. The 3 year lifespan that is. Unless its a cheap brand not buying parts from the same three places in Asia as everyone else.
Some of the internal parts in Apple Mac's are used in Windows and/or Chrome based desktops and laptops.
Desktop PC and laptops should be grand for at least 6 years. Very many last longer.
What kills them sooner is folk not looking after windows properly. Or not knowing how to. This causes degradation to the hardware. For example hard drives being abused by MS windows or by memory leaking cause slowing down and eventually the death of the memory.
Many of the companies I worked in and worked IT our Pcs were only changed out when our newer software would not work on Windows or if Windows upgraded too much rendering the legacy version useless.
Consumers should not have to worry about such things.
That's why Macs are good. They generally just work.
I've had windows laptops and desktops and none have been as stable as the macs I've owned. My current MBP is 7 years old and still works fine.