CD/DVD/Blu-ray optical hardware is becoming more and more passé, with the advent of media download and streaming services.
While Apple has made an accessory option Apple plugin optical drive for an additional purchase for those still using “old skool” technologies, Apple has not included, built-in optical drives in their computers for 9 years, now.
Apple iPhones and iPads never, EVER supported any optical drives and, probably, never will.
I think it is time you get yourself out of the 80’s-early 2000's.
Apple keeps eliminating old, “legacy” technologies for technologies that advance and push computing and media technologies and consumption forward and do NOT keep their products locked to old technologies that, basically, have run their course.
Consider yourself lucky that Apple decided to still support external, “old skool”, mechanical spinning platter hard drives with iPads and iPadOS.
Sorry & Best of Luck to You!