India is 5 hours and 30 minutes ahead of UTC because the entire country runs on a single time zone built around the 82°30′ East meridian, and 82.5 degrees of longitude is worth exactly five and a half hours of the Earth's rotation — a half-hour offset rather than a round one.
The arithmetic behind the half hour
The Earth turns 360 degrees in 24 hours. That works out at 15 degrees an hour, or one degree every four minutes. Put India's reference meridian through that conversion:
82.5° × 4 minutes = 330 minutes
330 minutes = 5 hours 30 minutes
So UTC+05:30 is not a compromise or a quirk of politics. It is simply what 82°30′ East comes to once longitude is turned into clock time. A country whose central meridian happens to land on a multiple of 15 degrees ends up with a whole-hour offset; India's does not, so India's offset carries a half hour.
Where 82°30′ East actually runs
The reference meridian for Indian Standard Time passes near Vindhyachal, in the Mirzapur district of Uttar Pradesh, just east of Prayagraj (Allahabad). It was chosen because it runs close to the middle of the country. India is a wide country, and a central meridian keeps clock time within reach of the sun at both ends rather than favouring one coast.
How UTC+05:30 became official
Indian Standard Time came into force on 1 January 1906. The IANA time-zone database — the reference that operating systems, phones and this site all ultimately read from — records the change plainly. Its entry for the Asia/Kolkata zone moves from Madras time at UTC+05:21:10 to a flat UTC+05:30 on 1 January 1906, when India's railways and telegraphs adopted the new standard.
Before that, the country ran on a patchwork. Kolkata (then Calcutta) kept its own time well after 1906, and so did Mumbai (then Bombay), which is why the IANA record for the region carries several earlier offsets, including a local mean time of UTC+05:53:28 for Kolkata itself.
India does not change its clocks
India observes no daylight saving time, and has not done so for a very long time. The IANA record for Asia/Kolkata shows a seasonal hour added during the Second World War, ending on 15 October 1945, and a flat UTC+05:30 with no rule attached ever since. That makes India one of the easier countries to schedule across: the gap between India and UTC never moves.
What does move is the other side of the calculation. If you are in a country that puts its clocks forward in summer, the gap between you and India shrinks by an hour for part of the year, and that is usually what is behind the question "why is India four and a half hours ahead?" rather than five and a half.
The half hour is less unusual than it looks
India is not the only place off the hourly grid. Nepal sits at UTC+05:45, a 45-minute offset it moved to in 1986. Sri Lanka also runs at UTC+05:30, having returned to it on 15 April 2006 after a decade spent at UTC+06:30 and then UTC+06:00. Both of those are recorded in the same IANA database, under Asia/Kathmandu and Asia/Colombo.
Working out the gap from where you are
Because India's offset is fixed, the whole calculation is one subtraction.
Start from UTC. At 09:00 UTC it is 14:30 in India, because 09:00 plus 5 hours 30 minutes is 14:30.
From the United Kingdom, the answer depends on the season. In winter the UK is on UTC, so India is 5 hours 30 minutes ahead and 09:00 in London is 14:30 in Delhi. In British Summer Time the UK is on UTC+01:00, so the gap narrows to 4 hours 30 minutes and 09:00 in London is 13:30 in Delhi.
From the eastern United States, the same logic applies in the other direction. On Eastern Standard Time, which is UTC−05:00, India is 10 hours 30 minutes ahead. On Eastern Daylight Time, UTC−04:00, the gap is 9 hours 30 minutes.
The quickest way to avoid doing any of this by hand is to read it off a clock that already knows the offset. The current time in India page shows the live local time, the active UTC offset and whether any seasonal change is scheduled, and the time zone converter will put any two places side by side for a chosen date.
In short
India is 5 hours 30 minutes ahead of UTC because its single national time zone is anchored to 82°30′ East, and that meridian converts to five and a half hours rather than five or six. The offset was set on 1 January 1906, it has carried no seasonal change since 1945, and it applies identically across the whole country.