Why was the Mayan code so hard to break?

Because no other language was made up before that one. So we had nothing to reference the Mayan code too.