The, er, male enhancement "feature" of Viagra is a side-effect of its original use: blood pressure medicine.
It's only a side-effect if it's secondary or undesirable.
[edit] Or (setting aside the birth defects) curing multiple myeloma was a side-effect of thalidomide, which was originally given for morning sickness. And life extension is a promising potential side-effect of metformin.