As long as the two segments don't share the same flight number, you will still be able to upgrade the individual leg.
Why does it do this? The System defaults to whatever booking code is available for the entire journey. Even if you call United agent, they might initially say that the upgrade is not available for the entire journey. But when they request it, it will confirm on the leg but you see available.