It happens if the settlement you attack has no walls...happens quite alot.