It could be what's called a sty, basically an ingrown eyelash. It is painful and sore but usually warm compresses help and it will resolve on it's own most of the time. If it doesn't, of course, go see the doctor.