So banks return zero interest but lend money at 4% for 30 year mortgages? Wow.
Not typically, most banks don’t hold mortgages on their books, some but very few. That’s where Fannie and Freddie come in, even then they don’t really hold them either, they sell them to investors.