Externalities

Side effects of an economic activity that affect other people and / or the environment, either positively or (more often) negatively. Unregulated markets often ignore externalities.

Example:
A company that causes pollution (a negative externality) makes a profit, while the rest of us pay the environmental cost.
Tax can help make sure those costs don’t get dumped on the public for free.