This only happens if a write to the drive fails. It is independent of whether a sector is reallocated.
passing the extended SMART test is not definitive (although suggestive), whereas failing it is definitely a problem. Not also that the overall SMART assessment based on the SMART attributes is almost meaningless unless it indicates a failure.