Why do motorcycles have a petcock?

Why do motorcycles have a petcock?

The petcocks purpose is to prevent fuel flow from the fuel tank to the motorcycles carburetors. They have this in part because motorcycles spend a large chunk of their lives parked on a sidestand. And the petcocks prevent the fuel from overloading the float seals on the “downhill” side of the bike.

See also  How much is motorcycle registration in California?