Why was Odysseus tied to the mast?

Odysseus sailed his ship past the reefs where sirens sing, irresistibly drawing sailors to wreck their ships on the rocks. He had his men put wax into their ears to block the songs. However, he wanted to hear the songs, and if not tied to the mast, he would have tried to go to the sirens and would have drowned.