They can be used to treat disease, but are often used to prevent disease. Statins in particular are used to prevent cardiovascular disease from developing.
As far as I know, high cholesterol only correlates with heart attacks and strokes. there are also people who have high cholesterol and will not experience a heart attack in their life.