No, goverment is a protection racket.
In the way back when, some warlord who beat the others in the area told his new minions to pay a share of all they own and what they produce in return for 'protection' - mainly from his own henchman (on a smaller scale we see this with tribes and chiefs, a social structure also witnessed in most primates, but we're talking governing on a scale beyond the confines of a family based troop).
As feudal territory grew, vassals started to ask for something in return other than rape and hanging for disobeying, lest they go for another warlord promising a better deal.
Modern economies, representative goverment, infrastracture and municipal services, etc, paid for by taxes - Socialism - is a relatively new development, just centuries old.
All laws in every country in the modern world can be traced to the Bible.