When was Gettysburg battlefield made into a national park?

why was the Gettysburg addres made