Connecting to an onion service takes more choreography than connecting to a normal site. After fetching the service's descriptor, your Tor client picks a random relay to be the rendezvous point and builds a circuit to it. It hands the relay a one-time secret called a rendezvous cookie.
Then the client sends a message to one of the service's introduction points, saying "meet me at this relay, here's the cookie," along with the first half of a key exchange, all encrypted to the service. The service builds its own circuit to the rendezvous point and presents the cookie. The relay matches the two circuits and joins them.
From then on, traffic flows across six hops: three from you, three from the service. The rendezvous point sees encrypted cells going between two anonymous circuits and has no idea which site is involved. This is one reason onion service connections take a moment longer to open, and why they still work fine when the server has no public IP address at all.