According to the minhag (custom) of the kehunah, Zecharyah was chosen by lot to enter the Beis Hamikdash and to offer ketoret (incense).