See the simple composition of a digital transistor, app note from ROHM Semiconductors. Link here
A digital transistor is a bipolar transistor that integrates resistors. Bipolar operation tends to become unstable if the input (Base) is connected directly to the output terminal of an IC for voltage control. Inserting a resistor at the Base stabilizes operation.