What's wrong with people? Why downvote a simple question like this one? Not everybody is compelled to know Harry Potter. What a petty and mean thing to do.
It's a Harry Potter reference. In the Harry Potter story, house elves are basically slaves; in principle they can only be freed if the master gives them a sock as a gift.