This seems a little myopic. Definitely earnings growth is a factor, but it can’t really explain what just happened with GameStop and WSB, nor most of Amazon’s rise over the past decades. Future expected cash flows, market size, interest rates (and therefore capital seeking yield via equity markets) are all factors. Alongside human tastes, cultural perception, and pockets of irrationality.
Edit: Peter Lynch agrees with me. Instead of being a passive aggressive downvoting asshole leave a comment.
https://youtu.be/UNrMnFM3VvE
Edit: Lol, I can't respond to your comments because everyone downvoted my comment and HN rate-limited me. Later.