One thing that comes to mind is that their body is reacting to their emotions. Fear or intense anxiety can make you feel like your heart is beating out of your chest.
If not I assume it can be something medically important, or sometimes like that. There are honestly a lot of different things that factor in.