this economic output comparison is brought up often, without proper context.
During the time that the British were looting India, the industrial revolution happened. That also helped India's economic decline, as does the fact that today, around half India's population are in agriculture, while contributing around 14% to the GDP.
The industrial revolution separated economic output from population size.