Quidditch is a piss take on cricket in particular, meant to heighten the perceived absurdity of both things. It was an early addition to the series, and one of the very few bits of genuine satire in the depiction of the wizarding world as parallel to the muggle world.