I believe the explanation for this is the first cell is formatted as text. And summing text concatenates rather than adds. Then the new value is saved as a number, adding the 3, to get 15.
This is an error that can already happen in Excel and one any experienced Excel user has to look out for when moving between alphanumeric and numeric cell types.
