Why does temperature affect heart rate in ectothermic organisms?

Why does temperature affect heart rate in ectothermic organisms?