the reason why hans risk frightening liesel terribly is: He needed her silence about the man in the basement.
They were facing a really dangerous threat of being discovered by the Nazi if the fact that Max has been hiding in he basement leaked out, he really need to keep Liesel's mouth shut.