The joke is a pun. A Prior (or prioress) is an ecclesiastical title for a superior in some religious orders. 'Prior' generally means 'before' as in 'prior approval' which means to have permission beforehand.
Priests can ' t marry without prior approval .