Such as on poloniex sites
I understand there are loan bitcoins, but how does that work?
How our funds Are they safe
Are you talking about borrowing or lending? If you are worried about the safety, I presume you are talking about lending.
Lending at exchanges is safe, because it is used for margin trading and is backed by collateral.
However, the risk is that the exchange itself might go down.