The joke is a pun on the word 'granite'.  Granite is a type of rock that may typically be found in a quarry. The phrase in the joke is usually 'taken for granted' meaning not valuing something that have or assuming something is a given.
She was only a Quarryman ' s daughter , but she took everything for granite .