My boss once told me, Don’t dress

My boss once told me, ”Don’t dress for the job you have, but for the job you want”.
Which makes you wonder why he fired me for coming in dressed as a Mexican wrestler