It is exactly a government sanctioned monopoly, but there is definitely a pretense of being about safety. Like pretty much any "progressive" policy, you can find people (even on these frequent HN threads) defending taxi regulations under that pretense.