Whoever downvoted this question, would be great to know the reason.
It is a legitimate question, it actually saved my life after working on a legacy project so many hours figuring out why the system navigation bar was still showing even after applying the enableEdgeToEdge() functionality as described in the official docs.
I am really glad I found this question/answer otherwise it would have taken me forever to actually get the culprit.