Every sleeping person continuously exhales CO2. In a closed bedroom, the concentration rises when less fresh air is supplied than is needed to remove that CO2. How quickly this happens depends, among other things, on the number of people, the room volume, any infiltration, and the actual ventilation rate.