Why did Lee take the war into Maryland?

to follow Grant's army
to gain support for the war in this slave state
to attack Washington
to teach the people a lesson for not seceding