Turtles bask under heat lamps to regulate their body temperature. As ectothermic animals, turtles depend on external sources of heat to maintain their body temperature. By basking under heat lamps, turtles can warm up their bodies, aid in digestion, and boost their metabolism.