Some questions to ask yourself when deciding how to store / park your bike (or whatever battery-powered thing).
If you don't know the answers, or you find yourself wondering about them, or you find yourself concerned about any of them, it's probably a better idea to store them in a safe fire-containment system away from dwellings, just in case.
How "good" are your batteries?
Were they really cheap, relative to advertised specs, compared to similar ones at the time?
What was their source?
What cells are they built with?
How are they interconnected?
How are they packed into their casing?
What physical construction methods were used for the casing, etc?
If they are not cylindrical cells, is the pack built with correct compression hardware?
Is the casing *really truly* waterproof (not water "resistant"), especially if it's *ever* been used, stored, ridden, etc in a humid environment, or rain, splashes, puddles, lawn sprinklers, etc?
How are they monitored / protected?
How is the charger built?
How good is the charger?
Does the charger have safety features to prevent overvoltage, overcurrent, etc?
Is the charger set to a voltage *below* the maximum safe voltage for the pack?
Has the pack ever experienced excursions outside the normal / safe operating ranges? (voltage, current, temperature, impacts, vibrations, etc).
I won't say that any particular cell or battery is definitely safer than any other, but packs built from large-format ex-EV cells, especially if they were left in the modules that they were originally factory built into, with proper compression hardware, etc., are probably a lot less likely to experience catastrophic failure than the average ebike battery, for many reasons associated with the questions above.
While cost isn't a direct measurement of quality, the cheaper the battery originally was, relative to similarly-spec'd ones, the less likely that the pack is built of good matched cells with proper interconnections, containment, protection, etc., and for the really really cheap ones, they could be built of literal recycled garbage cells (and maybe other parts too), with completely unknown specs, capabilites, lifespan, previous history, etc.