Every time the TARDIS materializes in a new location, within the first nanosecond of landing, it analyzes its surroundings calculates a twelve dimensional data map of everything within a thousand mile radius and determines which outer shell would blend in best with the environment.
And then it disguises itself as a Police Telephone Box from 1963.