Lelouch felt extremely guilty about the whole thing. He felt he didn't deserve her affection and so he Geassed her to forget him completely, hoping she wouldn't fall in love with him again.
Well she did. And she did again after being mindwiped a second time too.
It seems Lelouch didn't think his cunning plan all the way though.