It was the habit of the Prophet (may Allah's peace and blessings be upon him) and the rightly guided caliphs to lead the Eid prayer in both Eid al-Fitr and Eid al-Ad'ha, then they would give the sermon. They would pray first then give the sermon, and Muslims kept doing so until Marwān's era came, so he rose over the pulpit and gave the sermon before the prayer.