It sounds like bullshit, but there are other cases of crocodiles displaying friendship / empathy, like this one: https://www.elitereaders.com/costa-rica-man-befriends-crocodile-after-saving-its-life/
Maybe they have a higher capacity than we give them credit for. They have been around for 200 million years, so plenty of time to develop some form of intelligence.