Gaara has 29 overall; and he is a kage.
You didn't get my point. Baki doesn't have higher stats where he should, hence why i mentioned those 3 (ninjutsu, intelligence and stamina), i did it on purpose.
Stats don't mean much, but their total means even less.
Gaara's stats are much better distributed: Nin > 5 (like almost every kage, if not all), Int > 4 (quite good), Sta > 5. He has 29 because his physical condition isn't the best: Tai > 2, Strenght > 2.5, Speed > 3.
But that doesn't matter because his ninjutsu compensates for all that.