Some species of birds like to rub themselves with ants (2017)
atlasobscura.com
atlasobscura.com
I like that idea. I also remember growing up we used to put straw on top of ant hills waiting for ants to "attack it" with formic acid, then we'd lick the straw. It was a fun sour taste. Since birds groom their feathers, maybe they just enjoy it like kids might enjoy sour candy.
Though it is hard to type with three missing fingers...
I've heard the theory that the behavior is intended to mask the dog's own odor which could aid in hunting.