I happens when one of the romans build an imperial palace, that is possible when a city reaches 24000 inhabitans. It is easy to get it started way before it really happened.