This is a case of "married segments" - happens all of the time, even on award tickets. If UA has more competition from other carriers from A to B and from B to C, it might make seats available in cheaper fare buckets. In the case of A to C where UA might face less competition, it may restrict the fare buckets and can therefore charge more for the flights.