Upgrading a laptop might increase its useful service life, but if bought well-specced, this isn't the biggest problem.
The elephant in the room are repairs. Due to the design, too many repairs are not economic, so machines get thrown away early. Repairs, which should cost way less with a design that at least allows repairability.