There is a reason for this. The stupid politicians thought that Indian military will stage coups just like their counterparts in porkshitstan. So, they deliberately put a giant wall between civilian corridors of power and military HQ. In 1947, everyone and their mother were suspicious against everyone else. Nehru's weak leadership and penchant to play excessive appeasement politics caused various power centers that caused chaos in decision making. Excessively relying on outdated IAS/IFS style bureaucracy for everything instead of practical field leaders in military, business, law etc. resulted in several bad decisions and strategic failures. From 1947-1991, such policies led to untold miseries for people and even earned a derogatory term "Hindu rate of growth" for our economic policy. If outside the government agricultural experts like MS Swaminathan were not roped in to tackle the famine in the 60s, the IAS babus would have effectively killed off millions of people similar to CCP's great leap backward.
Overall, our IAS/IFS system has been a giant failure and never were able to become real experts in their domain, thanks to constant transfers, no exposure to advanced global practices (foreign travel for babus citing poverty politics was heavily curtailed during license raj), pretty much sealed our fate as the country was run by poorly trained and badly experienced babus with no access to experts (again fear of experts becoming more valuable than IAS babus scuttled such interactions). Defence ministry suffered terribly under these non-expert IAS babus who were fearful that military officers would become a power center. And our nation lost its edge.