Because there are more than six eggs in the basket? You didn't say where were only six. So if there were ten, there's still six eggs in the basket- with some left over.
...but technically, that person didn't take an egg. They took a basket that just happened to contain an egg, Did it have a wicker lid? Did they know there was an egg in the basket when they took it?