Wax lubes are predominantly made of wax, although they'll have a carrier solvent to help the wax to penetrate into the chain. The wax forms a dry film which lubricates the chain and is less likely to attract grime.
In contrast, oil-based lubes are made of oil. The oil penetrates into the chain links and does not dry. It may attract more grime than a wax-based lube though.