I have heard that philosophy recognizes or recognized a human inner drive to offer sacrifices to a higher being/authority and that this is the basis of early pagan practices and the foundation of religion.
Is this concept discussed anywhere?
We all have parents, real and metaphorical, and most of us have things to prove to them.
For some Jungians, sacrifice is an aspect of the archetype of God as the symbol or projection of our relationship to being parented and belonging to a family/culture. So it would be a basic human drive, if not an innate one. (Kleinians might declare the fear of the Other, to which this is a response, to be completely innate, as the natural split-shadow to our basic narcissistic omnipotence, no one can totally lack it.)
From an animal point of view, pack animals are often drawn to bring a kill before their pack leader. And psychoanalytically, the family, the religious community, and the culture in general, are packs.
And this is not gone from modern religion.
We see this in the rules in Leviticus about 'first fruit'. The part of your harvest you bring in before you have to actually start using it goes to be inspected by the priests. And then again in holocaust. There is a component of proof of value, and willingness to give things up for your community. The odds are that all of this food gets eaten or given to the poor, but that is not the central issue. The central issue is proving the willingness to give, and therefore your usefulness to the tribe.
The later form of sacrifice, after the order of Malkezedech and rabbinical blessing, and later basic to Christianity, where what is communally sacrificed is then also consumed, is taken by Jung as symbolic of attaining competence at complex tasks, replacing just having things to willingly give, as a higher standard of proof for the same thing.
Having them judged and blessed means we must have products of which we are proud (pictures on the fridge) and it is this pride in our work that is validated by the parent and proves our value. We have to have bread and wine to offer, to prove we won't ever devolve back to just hunting and gathering -- living off squirrels, nuts and berries. But there is still the urge to convince the parental figure of your value, and your deservingness to remain within the protection of the community.
Freud covers a lot of this in Totem & Taboo. For example, in tribes, social instincts are traumatised after mortal conflict so the warriors offer sacrifices to appease the dead, or other (nature) spirits, who might inflict revenge. Presumably the actual utility is to salve their consciences and set their usually orderly behaviour straight, because it's generally not normal to get into deadly fights.
Inclined as we may have been to ascribe to savage and semi-savage races uninhibited and remorseless cruelty towards their enemies, it is of great interest to us to learn that with them, too, the killing of a person compels the observation of a series of rules which are associated with taboo customs. These rules are easily brought under four groups; they demand 1. reconciliation with the slain enemy, 2. restrictions, 3. acts of expiation, and purifications of the manslayer, and 4. certain ceremonial rites.
Freud frequently quotes Sir James George Frazer's Golden Bough in Totem & Taboo.
To clarify how this relates to the question, the regular tribal social behaviour patterns, let's say pre-enlightenment, are mainly based on ritual. If a person breaks a ritual they experience anxiety. Konrad Lorenz describes observing this in even in his pet duck in On Aggression, quoted below. To expiate the anxiety the tribesman has some other expensive ritual to ensure safety. Remember this has behaviour has evolved generally pre-enlightenment. Even in a more rational age it's understandable that someone would make a sacrifice of some sort after an egregious mistake.
So the 'drive' involved is that which leads to evolved social behaviour. The drive for control of social environment. Seeking to gain control and mastery of one's self and one's environment in general is the basic drive, synonymous with Nietzsche's Will to Power. Survival instinct and life drive.
On Aggression habit, ritual and magic, page 67
... she deviated from her habitual path and chose the shortest way, skipping her usual right-angle turn and mounting the stairs on the right-hand side, ‘cutting’ the turn of the stairs and starting to climb up. Upon this, something shattering happened: arrived at the fifth step, she suddenly stopped, made a long neck, in geese a sign of fear, and spread her wings as for flight. Then she uttered a warning cry and very nearly took off. Now she hesitated a moment, turned round, ran hurriedly down the five steps and set forth resolutely like someone on a very important mission, on her original path to the window and back. This time she mounted the steps according to her former custom from the left side. On the fifth step she stopped again, looked round, shook herself and greeted, behaviour mechanisms regularly seen in greylags when anxious tension has given place to relief. I hardly believed my eyes. To me there is no doubt about the interpretation of this occurrence: the habit had become a custom which the goose could not break without being stricken by fear.