Why does one third belong to the Cantor set?

$(0.1)_3 = (0.0222\ldots)_3$, just as $0.1 = 0.0999\ldots$ in base $10$.


$0.02222222222222222222..._3 = 0.1_3$


Any endpoint of removed intervals belongs to Cantor set.