Many devices do last far more than a year. We get posters on here still using iPhone 3 and 3GS models. Some, however, do not. That’s the nature of any mass produced human product. World wide Apple sold something like 77 million iPhones in just the last business quarter. Some of those will have had issues right out the box. Some will fail in a week, or a month or a year and a day. The vast majority do not, but if even as many as 0.1% fail shorty after one year of use, that’s 77,000 iPhones from just 3 month’s sales. Even a very small failure rate for a device sold in the hundreds of millions of units mean a still sizable number are going to fail, and at any random given time.
But no manufacturer of any mass mass produced item can guarantee that every single unit, or any specific unit, will not fail within warranty, or very shortly out of it. Modern mass produced consumer electronic devices are some of the most reliable devices ever manufactured. But they are not infallible.
There is nothing about any of this that indicates Apple quality has changed over the years. They just are making and selling more devices than ever. I’m sorry yours failed, but your experience of One tells nothing about how likely anyone else’s is to fail, nor about Apple product quality in general.