Some of the Holy Apostles had been married,and I think it was St.Paul who mentions in one of his letters about a bishop being married.It was not derogitory,but discussed a bishop’s duties I believe.Celibacy was not required really until later on, though there were various moves to make it manditory. Eventually it was. And it maybe that part of it was due to the Cathars, whose leaders, the parfaits(in French),or perfects in english went out
and traveled in pairs and preached to the people,and the women taught and nursed the sick, and often gathered together in groups to form their version of a convent if you will. Most ordinary people felt they were holy and good christians, as their lives contrasted with that with many of the clergy, and I’m not talking about any married priests that might have been around.There were plenty back in the Middle Ages who drank,chased women, amassed lots of money from benefices,etc. and were supposed to be celibate.