A Central Bank buys gold for the same reason that households do. It's a safe investment.
Inflation does not reduce the value of gold neither does an economic crisis.
RBI had recently indicated the red expects inflation to remain very high in the coming months and before cooling down by the end of the financial year in March. The coronavirus crisis has also caused a huge dent in India's economic growth potential.