It has its origins in a horse race. It happens when the horse that was least bet on and thought most unlikely to win suddenly becomes the champion.
If someone called you a dark horse, he/she probably means how unexpectedly popular you are :)
Dark Horse is a term used to describe a little-known person or thing that emerges to prominence, especially in a competition of some sort
It's like an unexpected or unlikely winner. :)