The Eb major chord has flats because it’s in the key signature of Eb major. Eb major has 3 flats - B, Eb, Ab and so when you play this chord, you don’t play E, you play Eb.