Seems pretty simple to me. The gate opening is what triggers the mobs to become interactive and attackable.