They would if they could. Optical physics is one factor that prevents the lenses from being flush with the back. If you want to support advanced optical features the lenses need depth.
Thats the thing, I don’t care about the optical features they rolled out. I have an interchangeable lens camera that is the tool for that job, 10 years old and still works great.