a connotation of "crackpot"

why does crackpot mean a lunatic?

this phrase stood out to me because last night i managed to do just that (crack a pot) while cooking dinner.