Just an idle question that I float into the ether.

Apple supports both .pkg AND .dmg files for software installs … are there any โ€˜rules' as to why people use one or the other?