To add to this: if the immune system would just check that the cell is human then every invader would just evolve to pass that check. The only viable way to defend is to mark the cells as belonging to this specific human. That way even if some bacteria evolves to trick my immune system it's unlikely to also trick yours, and the infection can't spread.