Per Charles Funk, in Horse Feathers & Other Curious Words, "crackpot" comes from the use of "pot" to refer to the head.