The reason you cough is that your body is trying to mobilize...
The reason you cough is that your body is trying to mobilize mucus and break the secretions up -- your virus load. Fever, too, is part of the body's way of trying to kill viruses. They don't tolerate a high temperature.