This dialog is triggered by OSX noting that it kernel paniced. When it kernel panics a log file gets written. This dialog allows you to send that log (and a brief description of what you were doing) to Apple.
Apple can then analyse the logs from lots of people. If the start to see paterns (i.e. common causes) they can investigate and fix it making OSX better for all 🙂