but lottery tickets they can give million without necessarily having to pay anything to users, as only few people win the final prize.
This isn't true. The more tickets, the bigger prize pool.
So, with giving users free lottery tickets, they increase the value of prizes and it's not that they don't pay anything for the free lottery tickets.