Croup is usually caused by a viral infection, most often a parainfluenza virus. Your child may get a virus by breathing infected respiratory droplets coughed or sneezed into the air.