This would happen to me sometimes with home grown tomatos. Maybe it in part has to do with store bought are usually picked under ripe so they survive getting to the shelves? Or could be whatever mystery variety I was planting
When the bottoms get moldy and fall off it’s a lack of nutrients. Calcium, mostly.