It might be the case if you have turned on trusted agent, such as smart lock by google. Check it in settings.Problem with pin code on unlock screen.
Pin have been set but still can be opened with only common swipe on mi5
If it see's you unlocking phone within your trusted location it won't ask you for a password.