Moral hazard arises because a borrower has incentives to invest in high-risk projects, in which the borrower does well if the project succeeds but the lender bears most of the loss if the project fails.
Historically, banking institutions and other financial intermediaries have played a major role in reducing the asymmetry of information because they are well placed to collect information from borrowers and to engage in long-term relationships with clients.