Photo is an image but also a record. The fact something really did exist and captured is probably more valuable than ever.
So wedding/event photographer really don’t have to worry about lose their job to AI
But in places where photo, as an image just to express abstract idea, without concerning where and when it happened, then that part of value goes to AI already
"give me an elephant under a tree" "make it later in the afternoon". "not that late". "emphasize eyes just a scooch and make it look sad and pensive". "Not quite that much". "Clouds could be a bit whispier" Like you'd talk to a photographer, but with instant updates and no retorts like "great, are you going to pay me to camp out for days waiting for the clouds to move in the sky and then somehow hoping the elephant revisits this tree?"
Beats scouring a huge catalog (which, sure, will have AI powered search, but still), and suddenly, it isn't stock anymore, it is very particular to your specific needs. Custom to your needs, faster than getting a stock photo, and so, so much cheaper.
There is a difference between out of necessity and out of appreciation. Those are two completely different economies, later IMO, is much less predictable and reliable.