Lots of animals can do that, although the ones that can survive in a body—for example, tapeworms—usually start preferring to survive in that body (it relieves you of all the work of creating a biological equilibrium of your own), so they evolve to hold on inside instead of coming out.