Goal-oriented behaviors are a set of techniques aimed to give agents not only a sense of intelligence, but also a sense of free will once a goal is defined and given a set of rules to choose from.
Imagine we’re developing a trooper agent that need not only reach a goal of capturing the flag (main goal), but also while taking care of their own life and ammo (inner goals for reaching the first). One way of implementing it is to use a general-purpose algorithm for handling goals, so the agent develops something similar as free will.