You typically can pay off mortgages in the US early but there's nothing magical about a loan generally that says I can just pay it off at any time for free. It depends on the term of the loan I signed. I may have lent you money because I want a steady stream of income for the next ten years.
It's the same way some bonds are callable and others aren't.