The joke is a pun. A glazier is a person whose profession is fitting glass into windows and doors.  Windows have an outer edge called a window pane.  'Pane' sounds the same as the word 'pain' meaning the feeling of hurt, or could be used to describe someone as annoying.
She was only a Glazier ' s daughter , but she was never a pain to me .