Just pulling a random site (first hit on a search) https://www.findaphd.com/phds/browsebysubject.aspx
It appears you can get a phd in dance, event management, or dozens of fields that aren't curing cancer, or AI.
I'm reminded of the Olympic break dancer who did the "kangaroo" move. She has a PHD:
https://en.wikipedia.org/wiki/Rachael_Gunn
thesis: "Her PhD thesis, titled Deterritorializing Gender in Sydney's Breakdancing Scene: A B-girl's Experience of B-boying" (from Wikipedia)
Now I'm sure it was worthwhile, but I'm struggling to see it as a presumptive positive move to humanity for her work.
And there's lots just like it.
I'd even go so far as to assume that it's the extreme minority of phds that actually make a difference "for humanity" and not simply a good career move for the degree holder.