People often bowed to those in higher positions (for example, Genesis 33:3). Mordecai worked at the palace's main gate, and Haman entered the king’s court through this gate. This gave Mordecai many chances to disobey the king's order by not bowing to Haman.