In case one, the fasting day had begun although the person thought night continued. In case two, the fasting day had not ended although the person thought night had begun.
The objective time decides whether the day was validly completed. The mistaken belief explains why Quduri assigns qaḍāʾ without the special kaffarah.