Why is IST 5.5hours ahead of GMT?

It stems from when India was part of the British Empire. By putting your watch 5.5hours ahead of GMT, when in India, you always knew the time back in Blighty by simply looking at you watch upside down. This obviously doesn't work during BST.