The Allied Powers had to attack Germany on French soil because Germany had invaded France and kept taking more and more land. They had to win back France in order to win the war.
This battle eventually led to the liberation of France and was a major turning point in the war. It was one of the main reasons the Allies won the war.