I left my job last April entirely due to compensation. It was also due to life balance, but I was willing to sacrifice some life balance in exchange for higher salary.
I was working 60+ hours a week and on call three nights a week at a consulting firm doing engineering. My manager told me I was doing a phenomenal job and the entire year-end review cycle agreed - I scored higher than 95% of my peers and told I was "invaluable" to my team. Most of that was less because of my engineering skills and more because I was just pouring my life into this job.
Then, I got a 2% raise (yes, 2.0%, about $100/month). meaning I was still paid less than everyone who had just been hired. Many of those new hires weren't even engineers! I quit pretty fast for an 80% raise.