.navbar-nav li .active
The active class is applied to the navigation element the user is currently viewing. In the case of your code, the user is viewing the profile. It will serve as a guide or reminder to where in the website the visitor is in. That is why the active class is applied, which comes handy when viewing a website with many navigation links.