I don’t think there’s any compulsion., You might recheck.
Many friends of mine (Class 1 govt offrs) have shifted their salary accounts to Axis, HDFC etc .
If you wish to retain SBI acc, since its zero bal, you can sweep your salary to other account every month by giving standing instructions.