It's very easy for us to judge these Somali "pirates" from the comfort of our homes, with snacks on our knees...
But consider that much of Europe, in particular eastern Europe, and many Asian countries have been using the waters around Somalia for many years as dumping grounds for hazardous and probably nuclear waste.
In addition, many countries fish these waters with equipment that is banned worldwide. Because the Somali government doesn't exist, there is no way to defend these waters.
While I don't agree that piracy is a viable solution to these problems, when you get a country as desperate as this one, you had better expect criminal activity to flourish.
http://afp.google.com/article/ALeqM5gVV_gQDsp1m8v7nPcumVc5McYV-Q