Say the Germans decide to standardize on the Panzer III, and leave the Panzer IV's initial role to Panzer IIIs that had been fitted with the short 75mm gun (as were created later on iOTL).
What does Germany make in response to the T-34 in lieu of already having a tank that could be fitted with a long 75mm gun (in a turreted arrangement).
They change their mind and do produce an uparmored, upgunned Pz IV while they work on the Panther.
The reality of German tank production was that any production line that was up and running kept churning out whatever chassis it could (yes, that includes Pz II and even limited batches of Pz I vehicles). The Germans do have Pz IV lines that were producing the support tank short-barrelled version, and even in a situation in which they initially decide not to upgrade it as a tank, they sure as hell won't close the lines down; they'll be using those lines for tank destroyers, assault guns, SP artillery, whatever, on a Pz IV chassis.
So they backtrack and produce the OTL Pz IV later variants.