https://islamqa.info/en/answers/159...rs-and-why-does-allah-want-them-to-enter-hell
Imagine if a citizen of England doesn't acknowledge the Royal Family? Its worst in people's eyes, yes. Imagine if a person doesn't believe in ALLAH SWT, let alone being created by a creator? It doesn't matter how good a person is. As long as people choose disbelief over ALLAH SWT, they are doomed. ALLAH SWT give people a free will and the choice is to believe in ALLAH SWT or not. We often wonder about what our purpose is. Well, its test from ALLAH SWT.
ALLAH SWT is most Just and will be fair in Judgement Day. He will hold the believers who often sin, accountable. There's Sharia's Law (GOD's Law) for a reason.