The sword had been in Snape’s possession. Students had attempted to steal it but failed and been caught. Which undoubtedly meant he had taken more safety precautions should they try again. It would’ve been impossible for anyone to steal it.