I realize you can just answer, “mysterious aliens beyond our understanding,” but why would a space probe have a mandate of either talk to a whale for 30 seconds or destroy Earth and disable everything in its path on the way to Earth?
Why? What does that achieve?
Maybe the species that created it had just discovered how to add emotion to their AI systems and it was an early prototype.