It might an Administrator app/service preventing it. Like @belodion mentioned, if this is a company phone or you're using corporate e-mail in it, some security policies might be enforced (like no root, no unknown sources, enforced secure lockscreen, etc.)