Because a tiny sensor could only do so much due to those pesky laws of physics, the latest trend in mobile camera tech is so-called "computational photography", where they use a shitload of algorithms and AI to enhance your pictures. And I think they do segment them somewhat to apply these "enhancements" selectively?
Anyway, no idea about iOS, but many Android phones are capable of capturing raw pictures that you could then process however you wish in Lightroom or whatever else you prefer.