The route is surprisingly Z-shaped mostly due to geography, since the Ardennes lie on the direct line. Also the development of the rail network in either country took no account of the other country.
Trains somehow go from Aachen to Brussels. Ardennes is hardly an obstacle.