The problem is that, while the seconds odds are better, you need skill, time, effort, luck and, in most cases, you will have to spend more money than in a lottery (be either for investments, or studies).
The lottery odds, while a lot smaller, requires you only to invest a couple of bucks each week and to remember to check if you won.
Also there is not a formula that you can follow that will guaranteed you to become a millionaire from work/enterpreneurship and investments, while the formula for lottery winner it's quite easy. Buy a ticket.