Richmond was the capital of the Confederacy. The Confederate government was stationed there and all of the government officials and business were carried out in Richmond. It would also be a psychological blow if its capital was defeated and had to move further south.