I think she only withdrew from the team competition thus far. There are still the individual events and all-around. I don’t know enough about the team competition to know how it’s scored to know if there was any strategy around the withdrawal.
She should not be allowed to compete for herself as she gave up on her team.