Why was Berlin attacked during WWII

2 answers

The Allies wanted to capture Germany.
Berlin was the capital of Germany (as it is now). To defeat Germany, Berlin had to be "captured".