The issue is the relative degree to which the worker and investor get paid, as well as the risk they take. It's not a law of nature, societies can decide this democratically.
Because labor takes no risks. You work an hour, you get paid a wage. Investor might lose everything they put in. See the dot-com crash or any startup that goes bankrupt.
If investors could not profit they'd just put their money in a vault.