Because it’s the symptoms that spread the disease. The coughing and sneezing et cetera. The worse they are and the longer they last, the more the infected person is spreading the virus.
The symptoms aren’t the only way it spreads. Mere breathing does, too.