This is an application of Jansen's linkage: https://en.wikipedia.org/wiki/Jansen%27s_linkage
There are other similar linkages but Jansen's is quite good.
For anyone who doesn't have an idea why something like this matters or is inspiring beyond art, legged vehicles have many downsides but one big upside is that you can theoretically avoid the rubber/microplastic particulate emission associated with tires and wheeled vehicles if you can make legged vehicles as good as wheeled ones.
Even an electric battery vehicle with an electric motor charged by a solar/wind/nuclear power plant still emits pure poison into the air and waterways through friction between tires and the road.
Good alternatives would be biocompatible tires (Nitinol mesh tires like SMART Tire company's initial prototype that lacked the rubber coating) or legged vehicles.