Osama bin Laden and his followers support a conservative Muslim religion, and oppose the west's power plays in the region, gaining resources, keeping friendly puppets in power.
They face a hostile Muslim population. To protect their own position and grow their supporters, they need to get other Muslims viewing the west as the enemy.
To do that, the only thing they could really do was to provoke the west into attacking Muslims.
It's an old, classic technique. Most US wars have involved motivating the public by pointing out 'they attacked us', however much we had to make that happen.
In the Bosnian war, the Muslims attacked Serbia horribly, killing police and tecahers and other targets that would ensure Serbia responded harshly- and then they claimed they were being attacked by Serbia and needed help. They hired a US advertising agency for this, who came up with the marketing message comparing Milovevich to Hitler, which swamed the US media and created strong support for the war.
So, Osama bin Laden wanted the US to attack in the Muslim world, to create enemies.
He attacked embassies, hotels, our warship, nothing caused a big reaction - until he planned 9/11 that could not be ignored.
The attack had no sensible purpose, it could not come close to defeating the US ro crippling it, but it could strike the US in a way that rallied Muslims who opposed the US, and get the US to attack a Muslim nation and create enemies who would be natural allies of Al Queda. Indeed studies show that the wars have created many new terrorists, even while the Al Queda organization has been greatly damaged.
Osama bin Laden's plan basically worked. Not as well as he'd like perhaps, but it has caused the US to attack and to lose some international prestige.
Al Queda was no longer under threat of being turned on by fellow Muslims and destroyed.
'They hate us for our freedoms' is nothing but propaganda, a lie, to get people to accept the war without asking any questions about other issues.
But things are not going well for Al Queda it seems. They haven't been able to do much of anything, and their support seems to be under threat.
In recent news, even the Taliban have started to break off from some Al Queda, refusing them safe harbor.
Whenm 9/11 happened, that day I said the best thing we could do was not overreact, and not let it change our country for the worse, while we pursued the attackers and rebuilt.
Unfortunately, we didn't do that. But a decade later without another such attack, the overreaction seems ending.