How does a Glade Warden or Centaur Scout get 22 attack?

No, I did not.
The troop list shows a level 15 Glade Warden to have 7 attack.
add +5 for 5 ascensions.
add +5 for levels 16-20
add +5 for kingdoms at level 10
= 22

I did not include the 5 star kingdom bonuses because they are not reasonably achievable for most people. but with these, the maximum should be 27.