The thought "I am dreaming" is not always followed by the realisation "I am dreaming": they're two different things, which sometimes occur more-or-less simultaneously, but which sometimes don't.

Just the thought = non-lucid; the realisation = lucid.