Rockets are a British special unit, so you need to be playing as the British to access them. Once you have, build a factory rather than producing heavy cannons, and the factory will turn out rockets instead.
The same principle applies to the Ottomans and their Great Bombards — the unit you get from a factory depends on which civilisation built it.