A good example of state is the last time cron was run ('system.cron_last'). This is specific to an environment and has no use in deployment. The state API is a simple system to store this information, which previously would have been stored in the variables system.