Simple exposure is not enough to become immune. You need a significant infection which triggers a strong immune system response to build long term immunity. Thus in the initial stages of an outbreak you can basically ignore people that became infected weeks ago, had a significant infection, and are now immune due to the exponential growth curve.
It’s only after the rate of infection stayed the same or falls for a month+ that you need to adjust for such people.