In the US, why does the government have the right to regulate how political parties hold their primaries?
It doesn't. This is not a legitimate enumerated power of the US government, nor of State governments.
This is what the Constitution does say about the authorized manner of conducting a presidential election:
Each State shall appoint, in such Manner as the Legislature thereof may direct, a Number of Electors (Article II, Section 1, Clause 2)
In other words, only State legislatures may determine the manner of choosing electors, and the electors are unconstrained by any other artifice; the Constitution does not allow such constraints. The electors are appointed in the manner given by the State legislature and are unconstrained per the Constitution.
In the US, various states have different rules on how parties may hold their primaries: some require direct ballots, some require caucuses, some states hold "open" primaries and some are "closed.
As we see above, each State does have the Constitutional prerogative to determine how its own electors are appointed. What it does not have is any Constitutionally authorized oversight of the nomination processes of any political party. None. You can search the Constitution and there is no enumerated power or delegation of authority into parties nor is there any allowance for government intervention into, or oversight of them, beyond the protection of individual rights.
political parties should be free to choose their candidates in whatever manner they see fitting, with no intervention by the state authorities.
You are correct and that is what the original United States Constitution expressed (actually it was even more permissive; it makes no mention of parties at all. Parties could choose to hold a nomination or none at all. This has always been beyond the government's prerogative to control). Prohibitions against partisan control were significantly weakened with the 12th Amendment in 1804, since which time there have begun to be general elections in which the public votes for presidential candidates and States have thenceforth been in the business of propping up candidates to appease the national parties, and now even the amended version of the Constitution is ignored as partisan-government incest abounds.
So why do governments in the US get to regulate how political parties conduct their business?
Because the political parties now have nationalized oversight over how elections are even conducted, and how votes are allowed to be allocated. This is evident in the introduction of bound delegates per partisan rules, the existence of unconstitutional partisan "tickets" formed at national party conventions, and the existence of general elections by the public for presidential candidates. The Constitution allows none of this.
Remember, when the Constitution was originally ratified:
- The public did not vote for presidential candidates. States appointed electors. Parties existed, but electors voted for the president in unbound fashion.
- Electors could vote for two candidates and the runner-up became
vice-president. This eliminated the problem of being run by a two-party system since any administration would almost of necessity consist of party-heterogenous candidates. This also meant third parties actually stood a chance whereas since 1804 they have not.
- There was no national popular vote (writing this for posterity to remind them of the way things were).
Under the original Republic, State legislatures determined how to appoint each State's electors, independent of all other power mechanisms. They could have done a statewide popular vote, a straw poll, or had their legislators nominate and choose electors, held nonpartisan caucuses, or anything else allowed under the Constitution. Once those electors were chosen, their own judgment was the test for who became the next president and vice president.
If you voted in a State popular election for your elector(s), your elector(s) would bear your representation and vote according to his/their own judgment and conscience. That would be all you had to do with any presidential election, unless you had further involvement with a national party's nomination process.
There was no presidential primary and no general election by the public for the office of president. The only election you would normally vote in was to choose your elector(s), if your State legislature had invited your participation in that electoral process. If and only if you were an elector, then you could vote for two presidential candidates, the runner-up of which would be vice president.
Nowadays, we vote at least three times in each presidential race.
Once on caucus night to get our delegates to the party convention.
If you are a delegate, you vote a second time to nominate your party's candidate(s).
(This gets overruled if there is a signature-gathering option.)
Then you vote again in a partisan primary.
Finally, you vote in a party-controlled general election.
The original Constitution was much simpler and much less vulnerable to incestuous control of the parties by government, and of the government by parties.