What the person is doing is using a group of tactics called (D) ingratiating tactics.
There are various types of ingratiating tactics, which includes the one described above: modesty (acting humble) and complimentary-other enhancement (making someone feel good or important).
Ingratiating tactics can be broadly defined as a group of psychological techniques to influence other people by making the user of these techniques more likeable.