Your Scrotum Has Its Own Thermostat. The muscle that contracts the scrotum and draws the testis up to the body is called the Cremaster muscle. Its main function is to raise and lower the testes to keep their temperature steady. When you get scared and they shoot up inside you, that is a protective function.