The iPhone Mini didn’t die for this. The last iPhone Mini was five years ago.
The iPhone Mini died because it had terrible sales numbers. It was clear that what more people wanted was a cheaper big iPhone. Hence the 3rd Gen SE and the iPhone 14 Plus.
I agree that it’s sad. The iPhone Mini was awesome and adorable. But it just didn’t sell well, unfortunately.