Why is it important for the testes in pigs and other mammals to completely descend into scrotum?

The production of sperm requires a lower temperature than body temperature (in mammals) therefore it is necessary for the testies to be removed from the general mass of the body.