how do babies sit independently?

Ok this may be a super dumb question , but as a FTM, how exactly do babies sit independently - like what are the body motions that let them sit unsupported? Do they roll to the side then push up on their arms and scoot their butts? So confused - we grown people take the simplest things for granted!