South Africa and India are members of the Commonwealth. They do not have the Queen as Head of State - i.e. they are not what we call "Commonwealth realms" - but they are republics in the Commonwealth. This is not unusual; only 16 out of the 53 countries in the Commonwealth are Commonwealth realms.