Masaail pertaining to the dying person

Non-Muslim calling out Maalik at the time of death

Q: I was recently told about the death of a friends grandmother (by the specific friend). These people are not Muslim however upon death when the soul began to be pulled away from the body the grandmother began calling out the name Maalik and her head bending backward face up in the sky and breathing heavily. What is the possible explanation for this? Is there significance? How do I explain this to this friend of mine seeing that a Muslim name was called at such an event?