Avoiding it's not that simple -- there's certainly been a very anti-flesh/carnality, anti-woman pro-celibacy strand within Christianity from Paul onward, even though the first popes would have been married.
But property and inheritance is certainly part of it, and has been since the 10th or 11th century when there was an investigation into priests' morality (hogging money and benefices for their children), which seems to have fed into the ban on priests marrying (and of course in a different form, later, into the Reformation).
zzzThe Church has huge amounts of money, property etc. Individual Catholic priests generally do not receive a salary, because they are (supposedly) single celibates not supporting a family, and are housed by the Church in church houses tied to their parish assignment, which is not in their control -- they are assigned a parish by the diocese. In Ireland, where I grew up, priests get only the proceeds from a twice-annual parish collection.
Whereas say, C of E priests, who can marry and have children, receive a salary, apply for parochial jobs like anyone else, and are free to move around between parishes to suit themselves and the needs of their spouse and kids.