Pugs do not actually have hairless armpits. They have skin folds where the hair is very fine and sparse, which can make the area appear hairless.
These folds result from their brachycephalic genetics and, in some cases, breeding for exaggerated features. They can trap moisture and bacteria, so regular cleaning is important to prevent skin infections.