Well the diesel can be in the consist for many reasons.
Power (lighting) and heating for the cars is one reason (HEP). Passenger cars used to use steam for heat, but that has long ago been fazed out.
On stretches of track where there is some kind of in cab signaling, the diesel would be needed for that, since the steam locomotive does not carry that kind of equipment. The same would be true if the diesel locomotive carried some kind of radio transponder or GPS locator that interacted with the dispatching computers.
I also wonder if maybe the diesel helps the steamer pull the load a little, so the steamer doesn’t risk breaking a rod or bursting a cylinder or something. This I do not know, I just wonder.