The Doctor had to get into her mind a little to ease it so she could sleep, He was attempting to relax her. He wasn't sure if it would work or not. Unlike the Master he didn't mess with minds the way he did,and only did it to help.