It's a dative case. We didn't learn it so far ...
What if we want to say "how are they?"
Wie geht es ihnen? (I hope this the correct solution)
Why not "how are you (plural)"?