There are a ton of them. Look at any open-source email/dav/webserver/etc projects.
As an example: Dovecot (https://en.wikipedia.org/wiki/Dovecot_(software)) doesn't require me to connect to their servers for anything. They have no idea what I'm doing with my data, and they've designed their software so that they can't violate my privacy.
I also don't see why it matters whether or not nobody else sells a smartphone like that. Just because everyone else is doing shady shit with their products doesn't mean Apple gets a free pass.