What is the meaning of [You can’t judge a book by its cover]

This is a metaphor and is applied to people. Just like we need to read a book to know if it’s good or bad. We can’t always know what people are like by the way they look.