A small caveat: nepotism was the practice when cardinals (who were celibate) would push their nephews into positions of power. So, strictly speaking, it is the other way around: celibacy caused nepotism, otherwise we would have had filism (from filius/son rather than from nepos/nephew).