I assume you are asking about embryonic, or fetal stem cells.
They are less-differentiated. This means that they haven't been programmed to turn into a specific type of cell. Without this programming, they don't yet have immune complexes on their cell surface. Without immune complexes/identifiers, they cannot be attacked by a host.