The criterion is Chopin, who most probably HAD a very fine ear - and so it has a reason that the piece is in Eb."
And by the way, pitch has risen almost a semitone since Baroque times. So Bach's Prelude in C major would have to be played in B major for us to hear it in a modern piano as Bach heard it in his harpsichord.
Why is that?? :-/
Also, would be really boring if every piece was in C Major : )