You get bitten. In the fiction of the series, a bite from an infected passes the pathogen along, which is why the survivors are implied to be carriers rather than immune.
Mechanically, though, the player characters never turn — the infection is backstory that explains the setting rather than a status effect you can catch during a campaign.