Caligula was a freakin' lunatic, but I think he knew what he was doing. Many historians interpret this particular act as a way to "knock the army down a few notches". Soldiers were basically relegated to picking sea shells along the shore. Another theory is that he was punishing/mocking the Roman soldiers' general fear and apprehension against the sea.
Yay! I finally used my history degree for something!