Kasich is staying in because he thinks he is going to win the nomination after the first ballot.
Kasich is staying in because per Ohio law, if he drops out, Trump gets his 66 delegates from Ohio. Great bargaining chip for both which is why it is likely that Kasich gets the VP nod.