It is compulsory for SOLAS vessels to have GMDSS equipment. This includes all passenger vessels and cargo vessels of 300 gross tons and above on international voyages.
There are also a very large number of vessels that don’t undertake international voyages and do not have to comply with GMDSS, ie fishing vessels, warships, yachts, etc. The individual flag states must provide safety and distress services for these vessels.