Stock trades aren't instantaneous, and they're not guaranteed to resolve in the order they were submitted. Wealthy traders can throw money at a combination of locating their servers physically closer to the exchanges and just straight up purchasing preferential treatment from them in order to ensure that their trades will always resolve ahead of yours. Moreover, the "price" of a stock is essentially the rolling average of all the buy and sell offers currently in open. When you "buy" a stock from Robin Hood, what you're actually doing is creating an offer to purchase at or below a specified price point.
One of Robin Hood's main sources of revenue is providing access to that stream of trade offers to investment firms who can use it to "predict the future" in ways that will systematically erode your profit margins. There are any number of ways this happens, but probably the easiest one to understand is that after they see you place a buy offer they can use their position near the front of the queue to accept the cheapest available sell offers ahead of you and immediately resell them to you at your offered price, pocketing the difference.
That's the catch with normal humans trying to play the stock market. You can't actually participate in the same way that wealthy institutional investors do, because you can't afford to pay to be near the front of the queue. In fact, the way you participate essentially guarantees that, no matter how well you do, the institutional investors will be able to do slightly better.
One way to work around this is for normal humans to pool their resources so that they can collectively act as a wealthy institutional investor too. That's essentially what index funds are.