Why did Quixote attack the windmill in the field?

He thought it was watching him.
He thought it was a giant.
He believed it was an evil omen.
He believed it would impress Sancho.