Unclear what's in it for Nicaragua when they vote to oppose. Looks like that's ruled by Sandinista National Liberation Front, what is described as a socialist party. Doesn't explain much to me, though.
They tend to side with Russia, China, North Korea, etc., internationally. The ties have been there since the days of the Soviet Union. Nicaragua was supportive of Russia's annexation of Crimea and voted against the UN resolution condemning it for the Ukraine invasion.