Training hard puts your body into a state of recovery. It is in this state that you get stronger, faster, etc. Your body has a finite amount of resources and while it is recovering it cannot devote the usual level of resource to the immune system, partly due to the additional workload, and partly due to depletion of micronutrients (which is why athletes take extra zinc, magnesium, etc). I'd cite a reference but I can't be bothered to dig through my pile of Runner's World magazines, you can probably find one on their website.