The similarity with tor is that you can connect to any other computer via its public key, which corresponds to a .onion address.
If your computer's public key is xx73u2, then I can access it at https://xx73u2.onion/and/whatever/path/i/want, and tor handles all the encryption. From this perspective, anonymity comes as a bonus.