This even goes for older smart phones. Just because the company needs to turn a profit, doesn't mean I have the means to continually upgrade every 2 years. I love the efforts people put into things like LineageOs.
Consider a Linux phone (Librem 5 or Pinephone) instead, because those do not rely on proprietary drivers, which still can force you to throw your device away at some point.