That’s not supposed to happen… That it did is indicative of some manner of short circuit, which could be caused by a number of things. My guess would be a damaged/defective/counterfeit SD card, though a defect in the card connector causing incorrect connections to be made would be another possibility.
Fake flash memory products are not uncommon, and can range from being empty packages to having less than advertised capacity to being produced with chips that failed quality control testing, or that were never tested at all. It seems likely to me that cards produced with bad silicon would show symptoms like those that are described.