Will photographers be replaced by AI?

There are more images being created than ever before and the overwhelming majority are not being created by professional photographers. Mobile phones eliminated the low-end market for images and AI will eliminate much of the mid-market. So if images of reasonable quality can now be created by anyone for free (or almost for free) with their mobile phone or AI, why do I think some photographers will still be doing just fine years into the future?