When you are either very nice, very funny or both, you make lots of friends. Having lots of friends means you are popular. You can tell who is popular because they are well known characters in the school, due to having so many friends.
"Jenny lent me her biology book, isn't that nice?"
"Yeah, and she's so funny too!"
"No wonder she's so popular."