The same could be asked about why they maintained x86 builds of OSX before they even had any plans to switch to Intel. Not every internal project at a company is directly tied to current business prospects.
I think it was always the plan, in the meantime it served as a stick to beat Motorola/IBM with.
Back when people knew about computers, they had to differentiate on technology. Apple didn't use those stupid Intel processors that IBM picked, because they were different to IBM.
They needed to wait until enough people wouldn't care that it had an Intel chip instead of something from Motorola/IBM & they now just rely on the case design and UI to differentiate.
They also had to wait for Intel to bury the p4. It wouldn't surprise me if Apple motivated Intel to produce something better.