Oliver Cromwell wore a hat indoors, so why can't I?

Oliver Cromwell wore a hat indoors, so why can’t I?

Julie Andrews sang this in an early version of My Fair Lady.