Which is one of the positive effects of financial bubbles - they create irrational local excess of cash that is largely wasted, but every now and again it begets a new life form that couldn't come to existence in a more rational bubble-free universe.
The smart person [like Elon et. al.] knows when to jump on the bandwagon of the bubble and jump off before the bubble bursts. Leveraging everyone else's wasteful behaviour for their own gain.