Following links the follower’s prayer to the imam’s prayer. Fard behind nafl is not equivalent to nafl behind fard, because the relation of obligation reverses.
In the Hanafi ruling, obligatory prayer cannot be based upon an imam’s voluntary prayer, but the reverse can be valid.