My understanding is that the risk of infection is only heightened if a person is in a heightened risk environment, not if a person has existing health problems.
The people with existing health issues are at a higher risk of serious illness if they become infected with Covid-19. This is the reason for shielding.