Actually what I think is happening is the images your tying to work on have a few artifacts, or noise.
What may look like just one color sometimes really isn't, this happens a lot especially when dealing with images with an alpha channel.
If you take a look at the first image, on the green part you wanted selected, you'll see a slight difference around the border.