seems like you were getting close to the end of your dream cycle. Many people get lucid at the end of their dreams when they are most conscious.