Nilotinib was "designed" as a leukemia treatment, but ... didn't go so well.[1] Oops, just kidding - it's a parkinsons/dementia treatment!
(also, one of the erectile dysfunction drugs, I forget which one, was also "designed" for something similarly unrelated...)
The real headline here is that these people have no fucking idea what they are doing. They are throwing shit at the wall to see what sticks and then informing the marketing department as to which side effects were the most interesting.
This dovetails nicely with their other favorite activity: finding efficacious natural compounds and then tweaking them just enough into a synthetic compound that can be patented.
[1] "Interim results showed Tasigna is unlikely to demonstrate superiority compared to Novartis's Glivec® (imatinib)*, the current standard of care in this setting." (wikipedia)