They're able to self balance themself by ensuring the Red-Black rules, some rules are that the root node is always black, input nodes are always red
and a red node can't have a red child, thus, if this does happen, the tree will have to roate itself to keep the Red-Black rules.
Below here is an image of a Red Black Tree: