"It cost a lot" vs "it costs a lot"

In Murphy’s grammar book I’ve found the following phrase:

“It cost a lot to repair the car”

Why it’s correct, why “it costs” is not used here?

Thanks!

cost - past tense