Three steps. First, play as a faction that has access to catapults — not every starting faction does. Second, upgrade your city until a workshop becomes buildable, since siege engines come from there rather than the standard barracks.
Then train the unit and put it to use. Catapults are slow and need protection, so keep them behind your line and let them work on walls and clustered infantry.