It is a tricky concept. XPS measures the binding energy of the electron, and 4s electrons are more tightly bound than a 3d electron.
Aufbau's principle is more subtle, it is about the lowest energy configuration
of electrons in a neutral atom. Weird I know, I didn't really get it until graduate school.