High heart rate


Just left my 37 week appointment and they said baby boys heart rate is 178 , they said that was pretty high but to go home and eat something and if it’s still high to go to the hospital . What does it mean when they have a high heart rate this late in pregnancy ?