Why is my eye irritated? Red inside, pus on lid.

Infection. Sounds like blepharitis or conjunctivitis. Keep lids clean and apply hot compresses and see ophthalmologist if no better in a week. If you wear contact lenses- see one now.