These motors are never meant and never will be able to add new axis during print. They are even only working while not printing and handled in main thread. It is more for changing bed position or clearing bed, such things.
The design is open, so you can have different drivers also with a homing position or whatever might be needed. That is why you initiate with the right class and all required data. The provided example is just the simple type only moving.