I'd imagine it's used by migrant/long-hours workers because it's relatively cheap (for the given effect), and quite readily available.
It's even licenced by the FDA for certain conditions such as ADHD, and exogenous obesity[1].
I believe (although I can't find a direct citation to justify it at the moment) that it's considered to be more damaging than other amphetamines (both psychologically "meth psychosis", and physically (cardiovascular stress).
There are a number of drugs with similar(ish) properties,
although some of them are either illegal, or prescription only. Off the top of my head, there's Provigil (modafinil)[2], Khat (cathinone)[3], Coca leaves[4], and the various other non-caffeine forms of the xanthines (Yerba mate, Cocoa)[5].
In addition to those, there's the whole class of the stimulant Phenethylamines, (of which the * -amphetamines are a subset) although some of them have hallucinogenic effects which would limit their use as a performance enhancer.
The only one I would outright demonise is Methamphetamine, not necessarily purely due to the potential side effects, but due to the relative ease of (very poor quality) manufacture. This leads to a whole bunch of really nasty reaction side-products, on top of whatever cutting agents the distribution chain has added to maximise profits.
In any of these discussions, it's considered traditional to present Paul Erdős[6] as an example of productive amphetamine usage, so I will :)
On the topic of therapeutic index (therapeutic dose / ld50 dose), caffeine is probably one of the highest in my list above, with an LD50 of ~150mg/kg over a short period of time, and a productive dose being of the order of 100-1000mg/day depending on tolerance. Discounting time, that's a ratio of ~1/10.
[1] https://secure.wikimedia.org/wikipedia/en/wiki/Methamphetami...
[2] https://secure.wikimedia.org/wikipedia/en/wiki/Modafinil
[3] https://secure.wikimedia.org/wikipedia/en/wiki/Khat
[4] https://secure.wikimedia.org/wikipedia/en/wiki/Coca#Traditio...
[5] https://secure.wikimedia.org/wikipedia/en/wiki/Xanthine
[6] https://secure.wikimedia.org/wikipedia/en/wiki/Paul_Erd%C5%9...