It is a separate package so that a game, or a page in the browser, does not pay for it. pip install "box2d-python[testbed]" installs it too. See the testbed's documentation.
description Use Tide's Box2D package for deterministic 2D rigid bodies, collisions, queries and multiplayer physics that survives rollback and joins. For 3D, see 3D physics (Box3D), which is the same ...