It is called marketing strategy. Don't tell me you believe all the images/videos/etc which are being "leaked" are slip-ups by Apple in trying to stay tight-lipped about the iPhone 5? They carefully release this information to the internet/media who goes on to give them free marketing and publicity.
Heaven knows, lately Apple needs all the hype they can get.
They definitely leak info, almost everyone does it, car manufacturers, game developers, musicians. If you think about it a marketing release might get like a half page article, but if the journo thinks he's got some juicy gossip that no one else has then he makes it into a 2 page expose'.
This lawsuit is also genius, they basically take the hype machine from the pages of tech mags and tech sites into mainstream news... 90% of people, the % that don't follow tech, will only see "apple sues samsung for copying their devices"... they don't delve deeper or even care about the outcome.