The internet would not have existed without government investment. Back when the idea of the internet was being floated around in the early 1960s the US government did contact every major telecom company in the country snd all flat out refused meaning the government had to publically foot the bill (and the work).
No, capitalists would never, ever have invented the internet.