Another example of when E# has to be E# and not F: when playing an A augmented chord. This naming shows that the E of the A chord has been augmentedsharpened (A C# E#). Writing F (instead of E#) would indicate that the chord is F aug - F A C#.
The notes may sound the same but they have different meanings.