That's the beauty and power of the Android ecosystem. You aren't forced to buy an expensive "flagship" phone which makes it (and smartphones) accessible to many more people. While we all wish manufacturers would support their low end devices for years, it just doesn't make economic sense.
That being said, there are plenty of mid-range and even high-end Android devices that are left out to rot. Samsung and Google are the "winners" here.