Security is more interesting work than development for many.
Also, money and job security. At least from my experience, and intermediate Security Analyst will make about the same as a senior developer (Mid West market), and there does appear to be a much lower salary cap for developers than security engineers. In addition, Security seems to have far more available positions right now, as many corps are trying to 'catch up' and finally admit they need security.