There is no natural or universal force that prevents humans of any racial or ethnic background from sexual relations or reproduction. Assuming general fertility, humans from all backgrounds are capable of reproducing and creating viable offspring.
Cultural taboos and expectations vary from place to place, but this is not a function of natural law, only a function of specific cultural rules. Cultures create rules for a number of reasons. One common reason for a culture to forbid marriage with outsiders is in an effort to preserve their unique way of life. There can be a concern that outsiders will end up diluting and challenging the traditions, eventually leading to the original culture disappearing. This is also why some religious groups might allow marriage to outsiders, but only if the prospective bride or groom first formally converts to the religion and agrees to follow its traditions and raise the children in those traditions.
Another reason is simple racism. Communities of all kinds have a tendency to believe that their characteristics and way of life are the best way of life. This is called “chauvinism” and it is a very natural flaw present in most humans and most communities to some extent. Racism is partly an expression of this human tendency, and the kinds of prohibitions you describe can also simply be a result of that.