A credit score is a numeric representation of how 'risky' you are as a borrower. In general, the better your score is, the cheaper the money will be when you finance. For example, with a higher score, your chances of getting approved for a loan with lower interest rates and fees are increased. And this can mean significant savings over the life of the loan.
And no, it has nothing to do with closing your credit cards.