Montenegro has applied for admission to the European Union. It is a very drawn-out process. Possibly they were given to believe that legalizing gay "marriage" was necessary, or very desirable, for them to complete the process and be admitted.
For a relatively poor country (better off than Albania or Bosnia as far as per capita GDP, but behind Croatia and Slovenia), it may seem worthwhile to become a member of the EU.