 I have the feeling, and it's only that because we're not told which one, that this is the song that Moses sang after they came through the Red Sea and the enemy, the Egyptians, were all wiped out in the sea and they came through victorious. It was a song of gratitude and praise to God for victory over the enemy.