Using a present participle clause can give a reason for the action in the main clause.

Perfect participle forms, Having + past participle, show that the action in the participle clause was finished before the action in the main clause.

http://www.bbc.co.uk/learningenglish/english/course/upper-intermediate/unit-17/session-1