It's not just what you eat, it's how much you eat, and most importantly the number of calories in versus the number out. It takes more energy to convert proteins to available cellular energy, and this is one of the reasons why a high protein diet can lead to weight loss. There are other factors, clearly. I'm happy your blood pressure and A1C are down. There are most directly the consequence of the weight loss. Congratulations to you. Keep it up.
But that's precisely what the current mainstream advice has been for years, and it's obviously wrong. It is what you eat.