You mean the web, not the internet. And no, they’re not the only reason, they just help facilitate consumer protection in ways that happen to be mutually beneficial—not motivated by altruism. There are a lot of people who work a lot harder than the EU, often for free, who are much more responsible for the web and the internet itself being in a decent state and being worth caring about.
The fact that you don’t understand doesn’t mean I have an obligation to spoonfeed it to you