Although accessing open-access research is free, there are costs at every stage of the publication process. This includes but is not limited to running peer-review systems, copyediting and typesetting, hosting the article in perpetuity on dedicated servers and marketing. APCs support these costs.
Look at our resources for Funding Your Open Access Research.