Compensation doesn't have to be only the salary. The company can offer you other non-tangible things that might be worth work with them even for a lower salary. Maybe more free time, or more flexibility in your life it is worth less money in the salary.