And Because snoke told kylo to kill all of Lukes apprentices and so he had to hide her to hide his failure to fully carry out snokes orders. Killing all his fellow students could have been snokes way of asking kylo to prove himself that he was leaving the light side to dark side.