Why?when?where?and what is the hat??

Why?

Because humans needed protection against the elements.

When?

It`s origins can be traced back to the primitive man.

Where?

The place where it appeared is unknown becuase history is vague about that moment.

What is the hat?

It was first a need for man, after the 14th century it became fashion; an object that is indisposable for some people.