Indeed, it doesn't kill the bacteria, only pressure canning (@240F and over) does.** Freezing is not 100% protection from Botulism. 240F is the only real protection (pressure canning).
But freezing (wort) will inhibit the bacteria from forming spores, and any spores present from growing, thus preventing botulinum toxin from being formed. The frozen wort should be reboiled then chilled right before use.
Now letting wort sit out there for a few days at room temps or higher, without pitching yeast and starting fermentation, is always risky, especially in low oxygen environments.
Chilling (wort) to refrigerator temps (34-38F) will slow the toxin forming process down, but may not entirely stop it. So it depends on how long it's being stored in the fridge.
https://www.cdc.gov/botulism/general.html