Mordecai considered prostrating himself before Haman. This would be considered to be worship. It was wrong to worship someone other than Yahweh. Because of this, he refused to do it on religious grounds. This made Haman angry so he decided to kill all the Jews in the Persian Empire.