From E to F and from B to C there is no black key in between, so those white keys are only a half step apart. Every other pair of neighboring white keys is a whole step apart.
Every scale is just a pattern of half steps and whole steps. Change the pattern and you get a completely different mood.