In the short run the levels of usage of some input are fixed and costs associated with these fixed inputs must be incurred regardless of the level of output produced. Other costs do vary with the level of output produced by the firm during that time period.
https://www.economicsdiscussion.net/theory-of-cost/cost-in-short-run-and-long-run-with-diagram/19965

