Friedrich von Wieser developed cost as the value of the best forgone use, from Natural Value (1889) to Theory of Social Economy (1914), often credited with naming it.
It underlies comparative advantage: trade pays whenever parties differ in opportunity costs.
Accounting profit ignores it; economic profit charges it against revenue.