"“The Internet is generally not anonymous, and if you are breaking Swiss law, a law-abiding company such as Proton Mail can be legally compelled to log your IP address.” This cannot be changed due to how the internet works. However, we understand this is concerning for individuals with certain threat models, which is why since 2017, we also provide an onion site for anonymous access (we are one of the only email providers that supports this)."
And, in the case you are presumably talking about, Proton took it through the courts and ended up getting a ruling that "email services are not telecommunications providers. Consequently, email services are not subject to the data retention requirements imposed on telecommunications providers and are exempted from handing over certain user data in response to Swiss legal orders"
Which paints an incredibly different story than the one you are trying to paint.
Third, emails weren't handed over (nor were files, calendars, etc.). Which is another important distinction your comment does not mention.
Why parrot half of a story disparaging one of the only large email providers that fights in court to protect the privacy of its users?