When guilt arises in dreams it is usually because our instincts tell us that we have not been true to our own principles of truth and integrity. When we have done something that may result in us being judged, or committed some minor misdemeanour, in waking life we will experience guilt in dreams. You might also like to consult the entry for judge / judgement.