Virtually everyone agrees that heart rate depends on the amount of blood pumped toward it by exercising muscles. When you contract your leg muscles during exercise, muscles squeeze veins near them to pump blood toward the heart. Then when leg muscles relax, the veins fill up with blood. The pumping action of leg muscles during exercise forces extra blood to the heart, which causes the heat to beat faster and contract stronger. This is known as the Bainbridge reflex. We know this is true because we are able to transplant hearts. If nerves inside the heart regulated heart rate, the heart would not be able to control its rate of beating since the nerves are cut during the transplant.
Since the strength of leg muscles determines the fastest that your heart can beat and still pump blood, you might expect that athletes with stronger muscles would have faster heart rates. However, they don't. The researchers at John Moores University in Liverpool showed that athletes have lower maximum heart rates than sedentary people (International Journal of Sports Medicine, January 2008). The maximum heart rate of male athletes was calculated to be 202 - 0.55 × age, and for female athletes, 216 - 1.09 × age. Both weight lifters and runners had similar maximum heart rates, which were significantly lower than the age-matched sedentary people. The athletes have hearts that can pump more blood with each beat than the hearts of sedentary people, so they do not beat as often.