This has been checked out by neurologists. Speed up the tempo,
slow it down and the bird matches its rhythm. This seems most
prevalent in animals, like parrots, that mimic speech.
Not quite as clear an example, but here’s a smaller member of the parrot family–
The cockatiel isn’t keeping the rhythm with the humans, but he’s stamping his foot in rhythm with his own singing, even when he changes over to the whistling.
Not dancing but singing–
Singing to females makes male birds’ brains happy
young birds experiment with their vocal apparatus as they learn to sing
David Attenborough watching a Bowerbird improving its bower
His comment was that instead of having to attract a female with whatever plumage you were born with, male bowerbirds are able to choose what kind of visual display they think will be most effective. This one used pink flowers and black beetle wings
Music may make birds dance but some types of live music make all the major bones in my dog become unjointed and she turns into a floor rug. Animals just have different responses.