Subsidies skew the market toward specific sectors, technologies, or actors. A company that do not benefit from subsidies is at a competitive disadvantage vs a company that do get subsidies.
A totally free market wouldn’t have any subsidies. But markets aren’t totally free in practice.
Subsidies are typically a good thing when it benefits cleaner tech or improving energy efficiency. It’s the fossil fuel subsidies that do the most harm.