I have a friend who regularly invests around $30-$50 per month in Bitcoin and stocks. But he can't hold it long-term due to unexpected expenses like hospital bills and car repairs. He has to sell his Bitcoin or stocks when he needs money. This means he doesn't have an emergency fund or non-investment savings.
This reminds me of many people who say investing is more important than saving, but I disagree with that thinking. In my opinion, saving and investing are equally important and they play different roles in our lives. Even, we should prioritize saving first because life is full of surprises and without money for those emergencies, our life will become very messy.
Like in your friend's case, we can easily see the importance of saving because if he saved money for emergencies. He will not need to sell or cut losses on his investment, and his investment plan will not be interrupted.