Whenever you want some space.
So, if you have some divs side by side, you might give them some margins to push them apart.
You might also want some margins on your paragraphs to put some space between them.
You might have a box with a background color, and some text inside that. If you don't want the text to touch the edge of the box, put some padding on the box.
There are lots and lots of uses.