Why is being crazy associated with being stupid?

I have emotional problems and act "Crazy" on occasion. I am just curious how it makes you automatically stupid or retarded to be crazy. I am puzzled for real.
Why is being crazy associated with being stupid?
Post Opinion