Why didn't I receive the Gives back badge?

The query is based on the number of posts that have received a like, not the total number of likes received. You’ve only had 57 posts that have received a like.

The short description of “Has 100 liked posts and gave 100 likes” seems more accurate than the long description.