You can currently buy an iPhone SE 3 directly from Apple which is essentially a 2021 iPhone 13 in a 2017 iPhone 8 body.
The SE 2, a 2019 iPhone 11, was only discontinued in 2022.
Apple have had a budget older model available at all times for the last decade.
The 12 and 13 minis, which were an option on current model iPhones when they were available, were a bit cheaper but not a budget line or old model option, and were discontinued because they didn't sell well, not because Apple moved away from budget options.
To try and equate the discontinuation of the minis to moving away from selling older hardware as budget options is just false. Their equivalent would actually be the Switch 2 launching with a Switch 2 mini option.