Airplanes did it very often when they had piston engines. There's no mechanical reason an engine can't have its cylinders pointed downwards.
Usually the crankshaft is low on wheeled vehicles to facilitate better packaging. Having the crankshaft at the bottom of the engine makes it easier to mount a transmission to the wheels.
The
inverted engine was common on airplanes because having the crankshaft high helped keep the propeller well above the ground for takeoff and landing. The Messerschmitt 109 and the de Havilland Tiger Moth, two very famous and reliable aircraft, both had inverted engines with the cylinders pointing down.
ZV