Staff shortage usually can be caused by unexpected reasons like sick leave, personal reasons, cancellations from the staff of the agency or seasonal pressures.
Although it can be impossible to control and completely eradicate Nursing shortages, if you work on the ward, the best way to act is to reallocate the patients to the Nurses available including the Nurse in charge and plan your day properly trying to prioritize as much as possible.