Why do most lenders sell their mortgages?

Some disagree with the practice, but there are benefits

EMBRACE. FOCUS. EXECUTE. Build your 2019 roadmap to success with 4,000+ real estate leaders.
Inman Connect New York | January 29 - February 1, 2019

"Why do most home mortgage lenders sell their mortgages instead of keeping them? I have a problem with negotiating my mortgage deal with one firm over a week, then having my loan sold to another firm that I did not select, and with whom I am obliged to deal for as long as 30 years. Is it possible for me to find a lender who will promise not to sell my loan?"