They decrease absorption of some nutrients, including Ca (-> hip fractures).
They decrease the acidic environment of the GI tract, causing decreased elimination of microbes (-> PNA).
The C. difficile connection is relatively recent and I do not know the reason for it.