Immigration in India used to be notorious for demanding bribes from Indian migrant workers returning home after a few years abroad. They would claim that since the worker had been away for so long they now needed a visa to get into India and the gullible workers would shell out the demanded "fee" in a panic.
I've also been interrogated by Indian immigration on multiple occasions both when departing from and arriving into India as an Indian citizen. My worst interrogation lasted the better part of 2 hours at Delhi. The primary focus is to ensure that Indians who have been resident abroad for many years have not taken citizenship of another country (India does not recognise dual citizenship - you are automatically stripped of Indian citizenship when you receive citizenship of another country).