Credit score

Didn't know they take off points if you pay off a loan early.  Why?