Flattery is mostly (carried out) for deceiving and capturing people and the human being flatters others for the sake of greed [1]. Subordinates for their bosses and those who seek positions for the sake of using ignoble people, flatter them to draw their attentions in order to fulfill their materialistic requests (reach their worldly goals, demands, requests, desires) [2].
[1] Chehel Hadith, page 378.
[2] As above, Pages 560-561.
source : Shafaqna