Why do UK-France have a UN veto and not India?

un-3414137_1280India is the most populous country in the world. Recently Forbes released a list of the most powerful military powers of 2023 and in it India came fourth. It’s the fifth largest economy in the world.

Population rank: 1
Military rank: 4
Economic rank: 5

So a simple question, why is it not one of the five permanent members of the UN Security Council?

The US is way ahead.
Population rank: 3
Military rank: 1
Economic rank: 1

China comes second.
Population rank: 2
Military rank: 3
Economic rank: 2.

India would probably come third with this kind of ratings system.

Population rank: 9
Military rank: 2
Economic rank: 11.

Population rank: 21
Military rank: 5
Economic rank: 6

Population rank: 23
Military rank: 9
Economic rank: 7

A simple question: What are the UK and France doing in the Top 5 of the UN nations? Why aren’t they being kicked out?

Either these should be the 5 permanent members of the UN Security Council:
America, China, Russia, EU and India.
Or this Top 5 concept should be done away altogether.