Jer 16:1-5 gives some enlightening to the situation
The word of the LORD came to me: 2"You shall not take a wife, nor shall you have sons or daughters in this place. 3For thus says the LORD concerning the sons and daughters who are born in this place, and concerning the mothers who bore them and the fathers who fathered them in this land: 4(A) They shall die of deadly diseases.(B) They shall not be lamented, nor shall they be buried.(C) They shall be as dung on the surface of the ground.(D) They shall perish by the sword and by famine,(E) and their dead bodies shall be food for the birds of the air and for the beasts of the earth.
The emphasis in this passage is that this 'place' or the 'land' was not condusive to the will of the lord; not that marriage was a bad thing.
The Church does not teach that marriage is a bad thing; quite the opposite.
No one is suggesting that marriage is a bad thing. The passage was cited as an example of celibacy within scripture - nothing more.