It's not really that weird, root beer used to be made using sassafras bark and yeah that's toxic in large amounts too.
Also fun fact, you can eat the inner bark of most pine trees, particularly white pines. It doesn't taste great but it could easily be a source of food in an emergency.


