You don't pay B only when you pay B directly, when B is making you a LN invoice and you pay him without any other route. But when you use B to route your other invoice to C, you will pay him the fee for routing that tx. https://docs.lightning.engineering/lightning-network-tools/lnd/channel-fees