I think both the following sentences are correct:
A. The reason that I asked the question is that I am interested in the subject.
B. The reason why I asked the question is that I am interested in the subject.
But only statement A among the following two sentences is correct:
A. The last time that I saw him, he was tired.
B. The last time when I saw him, he was tired.
Am I right with the above evaluations? If so, why are "when" and "why" subject to different grammatical rules?