It's not that uncommon, actually.
In The Netherlands, both running a lottery and running a physical casinos are reserved for two state-owned companies. By law, half of the profit goes to charity. The rest goes to the government.
In Sweden, the government-owned liquor chain Systembolaget is the only one allowed to sell stuff containing more than 3.5% alcohol. Norway has basically the same thing going on.
The idea is that things like gambling and alcohol consumption have an overall negative impact on society, but completely banning them will cause even more harm. Having a state monopoly makes it easier to promote safe and moderate consumption, as no profit is required and criminal figures are kept out - at least in theory.