Do you really have an iPad4 - or perhaps, somewhat differently, an iPad Air4 or iPad mini4?
Not sure which iPad you have? Identify your iPad model.
The iPad4 is long-ago obsolete. The iPad4 was released 2012, discontinued 2014 - with end of support 2017. As such, if this is your iPad, then you have been given accurate information as to its support status.
The iPad mini4 was released 2015, discontinued 2019 - but remains in support; the Air4 released in 2020 also remains in support.
Depending upon your region/country, in addition to Apple’s one year AppleCare Warranty, you may have a longer warranty. For example, if you are within an EU Member State, you have at least a two year warranty. Should your iPad have a fault, you should initially approach the retailer from where it was purchased.