This sentence uses two past tenses: Past Simple ('entered') for a completed action and Past Continuous ('was cleaning') for an action in progress that was interrupted or happening at the same time. The cleaning was ongoing when the speaker entered.