That's because TSA doesn't do the security at SFO [1]
SF has had issues with drug trafficking through the airport due to this [2].
[1]: https://www.sfgate.com/travel/article/answering-holiday-trav... [2]: https://www.sfgate.com/cannabis/article/sfo-armed-robbery-un...