Allah examines the effort you make. When you are born in a Shia family, Allah holds you to a higher standard. Your trial is more difficult. You won’t have any excuse for failing the test. Your responsibility is greater.
Allah also examines the effort a Hindu makes in seeking the truth and doing good deeds. It a Shia makes no or little effort to practice their religion, he might die as an unbeliever because at the moment of death he will give in to shaytan and fail his trial.