That's not how this works as a rational investment choice.
It's true that you can never win a lottery you don't enter, but the expected value of that ticket is vastly lower than what you paid for it. That means, as an investment, your $10 will be expected to do better in literally anything with a positive return.
If you are buying > $10 worth of dreaming (for you), fine - but that's consumption.
You could win 100mm in the lottery (true statement!)
Lottery tickets are a good investment (almost always, false statement).
Planning on "well it could happen, technically" isn't a good approach.