As mentioned above, there are ways to monetise a project.
However, if you want to start earning money, from doing indie projects, you’d have to spend a lot of time working on them and building reputation. It’s easier for users to buy a game from someone that has made awesome games in the past, than from someone who just released their first one.
Most indie devs makes games out of passion, and that lets them keep making games, even if they make zero profit. Are you willing to accept that your first few projects might not generate any profit at all?
If you really want to make a living out of Game Development, the best option is to work in a team/company that makes games, and have a stable salary, until you build enough experience to do it on your own.