All else being equal (total battery mass, not counting packaging, of two 6V batteries being the same as the one 12V, same battery technology, same manufacturing design of cells, etc.) there is no reason the storage capacity would be different. There might be some subtle practical reasons that make them slightly different, like heat dissipation being a little better with two smaller batteries than one big battery, but it wouldn't be a notable difference. If you have an example of a notable difference, then I would strongly suspect its a different technology, notably different design parameters, etc..