I dont think this is anything to do with the G8 conference.
Why attack London when the conference is in Scotland?
It would have made far more sense to attack somewhere in Scotland (not necessarily the G8 venue) as this would show how close they could get to all the world leaders!