You can lend friends money. Just not money you would mind losing. It's like gambling basically.
Side note: I once loaned a small amount of money to an annoying "friend" who then apparently fell off the face of the earth. It was worth the money. Although I suppose I could have achieved the same effect by just being a d*ck about his sob story, but that eats at your conscience a little more.