The concept of routing onion messages is not limited to Tor. Tor only made it popular. LN uses onion message routing for payments.
All it means is that you encrypt a message multiple times; once for every hop.