The government generates employment through direct and indirect efforts. The government makes direct efforts at employing people in various departments for administrative purposes. It runs various enterprises and when they result in increased output of goods and services, they lead to further increase in employment.
The various private enterprises that are linked to the government enterprises might also benefit from increased output of these enterprises and thus, increase their output and employment also. This way government indirectly also generates employment.