Either you are a kid or soo sooo dump. France was granted and preferred to produce 34% of Libyan oil which means they produce the oil and take an agreed percent of the revenues. And that what is going in most oil countries. It's not for free.
France
Before the uprising, France relied on Libya for 16% of its oil. Although not as close knit as Italy, France's relationship to Libya was equally tabloid-centered during the Gaddafi era. Sarkozy departed from previous French presidents by publicly endorsing Gaddafi during state visits, while peddling French military technology to the dictator. Unlike in Italy, this enraged the French electorate who saw in Sarkozy - the first French ruler since Napoleon not of Frankish descent - an egomaniac, aspiring dictator betraying the core French principles of promoting freedom and democracy worldwide. As a result of his apparent closeness with Gaddafi, Sarkozy's popularity plummeted.
But then the tide changed. When the Libyan uprising began (and likely before then) Sarkozy saw an opportunity to please his electorate with a military victory over Libya and ordered air strikes in retaliation for attacks on civilians by Gaddafi's troops, even stepping in front of the US to lead NATO into the conflict. Soon after, France became the first nation to recognize the NTC (National Transitional Council) as official Libyan ruling government. Following France's cooperation with the rebel movement, both politically and militarily,
France was awarded the lion's share of Libya's oil.
A French opposition newspaper published a copy of a secret contract between Libya's NTC and the French government guaranteeing 35% of Libya's new oil contracts to France.
Gaddafi's Legacy of Libyan Oil Deals