In insurance you expect to come out ahead in the average case. In gambling you expect to come out behind in the average case. Therefore insurance is rational and gambling is irrational.
Depends on the game - poker for example (home game not at a casino, no rake), on average no one wins or loses.