This quote means that even if you meet someone who you do not like or you want to stay away from, it is often still necessary to be polite and friendly by saying “Glad to’ve met you”. This is because it is often important to act friendly and courteous to people even if they are not your favorite in order to stay safe.