Before the invention of planned obsolescence...
Planned obsolescence is a thing, but it is often a trade-off, not just companies being evil. By making things less durable, you can also make them cheaper, lighter, more efficient,... You also have to take technological progress into account. Your old dishwasher may last for 50+ years but it is heavy, loud, wastes water and electricity... So you may prefer a cheaper dishwasher that only lasts 10 years because you may want to change it later anyways because the energy savings of a new one can make keeping the old one not worth it.
There are cases of planned obsolescence that are, in my opinion, inexcusable (looking at you smartphone manufacturers) but lightbulb longevity is a worthwhile trade-off.