Batman is a character of vengeance and as such he represents a primal need in the human psyche for both justice and revenge upon the guilty.
He became a vigilante because of a need to cope with a major trauma. He wasn't raised on the concepts of justice and freedom like Superman. Instead he learned that innocent people get hurt and the guilty go free, thus he trained to become someone to strike fear into the hearts of criminals.