It might be because the words are pronounced similarly that then and than are often confused by English learners. Let's take a look at the difference.
Then
Then is used either as a time expression, as a consequence or with a sequence of events.
Then Examples:
As a time expression - Sorry I missed your call last night, I was already sleeping then.