PhD is meant as training to be scientist. Even people who complain about salaries knew up front it is not something designed to earn you a lot of money. They are people who value science and academic success more then money, at least when they are starting.