Many, if not most land-based vertebrates have an innate capability to stand after birth. This skill most likely involves the integration of perceiving gravity with the action.
It seems likely that there is also some feedback process so that if the centre of gravity comes close to the boundaries of the support area, automatic corrective action is invoked.