That's / It's

.............. a good thing that the teacher didn't see you.

According to Pearson "That's" is not correct in this sentence. Could anyone tell me why?