This is a poorly written joke that changes tenses near the end. It's supposed to be a pun on 'knows all the stakes', since gardeners use rakes to garden.
She was only a Gardener ' s daughter , but she knows all the rakes .