as you exercise, your muscles need more oxygen and energy they get from blood. so as your muscles demand more oxygen and energy, your heart works more, providing muscle needs
when we do exercise our body muscels will need more oxygen otherwise muscels will cramp so, to meet the need of muscels, more oxygen is needed and our heart is unable to pump oxygen in such a large quantity, which affects on heart