I won the lottery!

Literal

Lottery [subject-が] hit

当たる is intransitive — the lottery 'hit,' not 'I hit the lottery.' The fortunate outcome happens to you rather than you acting on it. Subject (the winner) is omitted; only the lottery is grammatically marked.