Love it or hate it, resource management in Starfield is part of the core gameplay loop. Mining resources on planets is the primary method of obtaining them, but if you have the credits to spare, they can also be bought outright if you know where to look.