Why not both?
In my country we have both state-run and privately-run trains for example. The state-run ones are mostly not profitable, they are funded by taxes. But on a few profitable routes there is a private competitor, taking it is usually cheaper but somewhat less comfortable.
My country is Austria, not Germany. Pretty sure my description is true for ÖBB PV vs WESTbahn.