Since the Cold War, the Soviet Union and the USA have trained belugas and dolphins to defend bases and submarines. Hvaldimir might have been one of them before he escaped.