Individuals move to the recovered compartment after they have overcome the infection and developed immunity against it. This immunity can be temporary or permanent, depending on the disease. In some cases, recovered individuals may still carry the pathogen and pose a risk of transmission, albeit at a reduced rate.