Because the motion on a trainer is far more repetitive than outdoor riding, fixed position on the saddle, no side to side motion, no coasting/resting, so knee problems can be exaserbated. A bike fit would be a good idea with a focus on your cleat and foot position...