I am learning subD. I don't know the difference between these two cases

I am learning sub D. I don’t know the difference between the two cases.

As in the photo above, he is curious about the reason why the result is different when sub D is done and how to solve it.

Please help.

Looks like a case of incorrect face orientation on the one on the right. Keep front faces out in your models.