Unintended consequences
Aspirin is a pain reliever.  Among other things, aspirin affects the blood's ability to clot.  An unintended consequence is that aspirin is sometimes good for people with heart problems.