This rule does not apply in the main trekking areas that everyone goes to.
In the areas that few people go to, it isn't actually enforced.
The Nepalese government just introduces this rule every few years in response to a missing trekker in the guise of safety.