That's your biblical ignorance and your confirmation bias talking...Does this work for you? Let's say you live your entire life without ever hearing of God, you die, and you are tortured for an eternity. Where was the justice in that?
The Bible says God will judge all people righteously. There will be a stricter judgment for people that have rejected Jesus than those who have never heard of Him.
Paul tells us that those who have never heard of the law are not attributed to sin under the law.
The people who have never heard of the law are judged by the law of God which He has placed into their hearts:
14 Indeed, when Gentiles, who do not have the law, do by nature things required by the law, they are a law for themselves, even though they do not have the law.
15 They show that the requirements of the law are written on their hearts, their consciences also bearing witness, and their thoughts sometimes accusing them and at other times even defending them.
16 This will take place on the day when God judges peoples secrets through Jesus Christ, as my gospel declares.