Ill compare it to the need to enter someones house without technically getting their permission...
If someone calls 911 and are in need of medical care..police often go as well to ensure medical personal will be safe while performing their duty. If the cop sees drugs, paraphernalia etc...no...