His intention was never to train Luke. I guess once Luke's aunt and uncle were dead he felt bad for him and thought better late than never? Yeah, technically he really should of left Luke to continue living a peaceful life but then none of the movies would ever have happened!