Dogs of both sexes commonly scratch or scrape the ground with their hind paws immediately after defecating.
Some Dogs also perform this action after urinating.
This is a normal behavior - it's your dog's way of leaving a scent and visual message to other hounds that might pass by later.