It's hard to scratch your chin when you don't have long legs.
The extremely short legs of the Ruby-throated Hummingbird prevent it from walking or hopping. The best it can do is shuffle along a perch. Nevertheless, it scratches its head and neck by raising its foot up and over its wing.
Source -Cornell Lab of Ornithology- All About Birds