Transaction fees/gas are paid to network validators as an incentive to keep participating in validating the network. Think of it as the fuel that keeps the network running. Without gas fees, validators would have no incentive to keep the network running.