Those are directories that hold configuration and/or
user-specific data/information. .mozilla for instance
will have your bookmarks, your cached web-pages,
images and such and browser settings.
The reason for them being "hidden" is that you usually
don't need to see them in your day to day work, they
would just clutter up the output of ls for instance.