There are a lot of scientific concepts in Star Trek that are both fantastical and difficult to understand. Warp drive, for one, doesn't technically break the laws of physics but is far more fantasy than reality. Transporters also have a logic to them, even though it's a fair debate if every time Kirk and the gang beam down somewhere they aren't, technically, dying and being reborn. Yet the one scientific concept Star Trek storytellers often avoid is how the economy of the Federation works.
Source:https://www.cbr.com/star-trek-economy-latinum-federation-credits-explained/