Credit score

I payed off my mortgage and Car loan. Why did my score go down almost 40 points?
Will it go back up?