In essence, while Layer 2 scaling solutions earn a substantial revenue from transaction fees, they send a small portion of that to the Ethereum mainnet for data availability and security purposes.