And PRIMARIES are private affairs.
Primaries are almost always governed by specific state laws and are at public expense. This makes them far less private than other party functions. Courts have sometimes held that political parties are akin to public utilities. But you are correct in that there is no requirement that parties choose candidates by democratic means at all.