Why did Germany invade belgium to get France?

Germany did not invade Belgium to get to France. Germany used Belgium as a staging area for its attack on France.
Copyright Wanderlust World © https://www.ynyoo.com