Answer
In both cases, efforts to create the genetic copies which would become new offspring (gametes or viral copies) are coordinated with efforts to protect and facilitate them.
Work Step by Step
Of course, these processes are wildly different in viruses and in humans. In general, however, reproductive processes (even for viruses) are a high priority. Organisms and viruses both make efforts to ensure the safety and survival of progeny.