Different masking tapes have different "clean release" times. The clean release time is when you can remove the tape and not leave any residue. If you exceed the clean release time you stand a chance of leaving behind residue. The more you exceed the time the more residue can be left.
Masking tape is not just masking tape. There are any number of different tapes with different adhesive strengths, clean release times, different temperature tolerances, etc.
Guy