The reason why Robert E. Lee brought his confederate forces into the north shortly before the battle of Gettysburg was because he had hopes of Scavenging for food and military supplies. This is because his confederate forces were already running short on critical supplies (majorly equipment, food, and ammunition) and this was demoralizing the army.