I would suspect that the real draw to working with Starfleet for non-federation personnel isn’t any concept of wages, but a comprehensive benefits package. Presumably Starfleet membership confers some level of personal federation membership, possibly for both you and your immediate family, which may mean that you get to move your loved ones to a mostly-utopic federation world.
Eat the rich in Minecraft