If it was just "Do this and you win" then it wouldn't be the lottery.
A lottery is a form of Gambling, which is when you stake money at a risk of losing, to possibly win more then you put in
With a lot of luck you can win.