Sometimes we are presumed, without any prompt on our side, to have certain allegiances, do certain things, even sometimes to hold certain opinions. For example, the presumption to have allegiance to the government of the country of your birth. And rejection of such presumed allegiances is often met with extreme prejudice.
On the other hand, contractual obligations presuppose consent of both sides.
Thus the question: are we obligated to honour the allegiances and duties that others assumed on our behalf, to which we never consented to?
EDIT: some clarifications of the question, based on comments.
The question is more about moral obligations than legal ones. Although I didn't phrase it clearly, I am interested in social as well as state-imposed obligations.
There are plenty of laws that would punish you for doing things that nobody would consider unethical, such as using force to defend somebody other than yourself from an assailant in some states, etc. There are also plenty of actions that most people would consider unethical, although they are not illegal.
A different way to phrase this: does other people's expectations of what our duty is imposes that duty?
Examples, some from comments:
Certain allegiances are expected within a family. Though shall not covet thine brother's wife. Certain allegiances are expected within social groups, such as colleges. Though shall not cheer for the opponent team. Certain "fairness" duties are socially expected by citizens from the officers of the State. There are extensive expectations by parents about school teachers' behaviour. Is a teacher obligated to comply to what the parents would consider "good moral character?"
Another set of expectations can be produced by your own actions. Suppose you got into a habit of giving daily a couple of bucks to a homeless at the corner on your way to work. It's possible that the homeless grew to rely on your daily donation. Does his expectation that was produced by your action imply a moral obligation for you to continue your daily charity? Are we "responsible for those we tame?"