Nobody is forcing you to look at, interact with, or even acknowledge the existence of my local web server. There is no stronger sense of the word "voluntary" than the one that can be used to describe web services. My service doesn't even exist to you, unless you explicitly choose to engage with it.
You, on the other hand, believe that it should not be allowed to exist for other people (at legal gunpoint!), unless it conforms to the features that you believe it should have.
This is more akin to not being allowed to invite people into my home, unless my bathroom and kitchen meet certain (arbitrary, non-structural) requirements.
Defending a laissez-faire model of society, only with restrictions on externalities, is reasonable, but it's also very far from how societies currently operate. The GDPR is not an exception. In fact, not even on websites - the Data Protection Directive, from 1995, already implemented restrictions on how EU sites can be run. The GDPR is only an expansion on that.
This is perfectly analogous to the real world where e.g. pollution has tangible negative externalities. It will always be the case that when responsive governments exist, and a thing comes into existence that people perceive as a threat, people will leverage the government to mitigate that threat.
If your home were perched on a cliff above a school playground, to use a contrived example, the townspeople would have a keen interest in the integrity of your home including the kitchen and bathroom.
Like fire code? :)
Nobody is going to die from not exporting their data - except in medical software, where the current U.S. feature checklist regulations haven't helped. For many websites, GDPR is next to pointless while adding broad legal requirements.
> You're not allowed to launch a service that provides X, and if you want to, you must also include X + Y + Z.
If you stop for a bit you'll realize that most things in society work like that. It's called regulation. Once you get used to it you'll stop being astounded and wonder how things were ever done differently.