Why can't a priest ever marry?
In the Eastern rites of the Church it is common for married men to be ordained to the priesthood. Further, in the Latin rite there are a few married men, converted ministers from other faiths, who are ordained to the Catholic priesthood. This, however, is not common. Finally, in neither the Latin rite nor the Eastern rites do priests (or deacons) marry after they have been ordained, except in extraordinary circumstances.
The reasons Latin rite priests can’t marry is both theological and canonical.
Theologically, it may be pointed out that priests serve in the place of Christ and therefore, their ministry specially configures them to Christ. As is clear from Scripture, Christ was not married (except in a mystical sense, to the Church). By remaining celibate and devoting themselves to the service of the Church, priests more closely model, configure themselves to, and consecrate themselves to Christ.
As Christ himself makes clear, none of us will be married in heaven (Mt 22:23–30). By remaining unmarried in this life, priests are more closely configured to the final, eschatological state that will be all of ours.
Paul makes it very clear that remaining single allows one’s attention to be undivided in serving the Lord (1 Cor 7:32–35). He recommends celibacy to all (1 Cor 7:7) but especially to ministers, who as soldiers of Christ he urges to abstain from “civilian affairs” (2 Tm 2:3–4).
Canonically, priests cannot marry for a number of reasons. First, priests who belong to religious orders take vows of celibacy. Second, while diocesan priests do not take vows, they do make a promise of celibacy.
Third, the Church has established impediments that block the validity of marriages attempted by those who have been ordained. Canon 1087 states: “Persons who are in holy orders invalidly attempt marriage.”
This impediment remains as long as the priest has not been dispensed from it, even if he were to attempt a civil marriage, even if he left the Church and joined a non-Catholic sect, and even if he apostatized from the Christian faith altogether. He cannot be validly married after ordination unless he receives a dispensation from the Holy See (CIC 1078 §2, 1).