A lot of it is prisoner's dilemma and its variants. As an investor, even if you think a particular AI shift is bullshit, you have to take into account the possibility that other investors won't - and at that point you might miss out on the gains.
This is one of the reasons stock market is so disconnected from reality.