Resource management is a big part of Starfield. Building anything, from weapon mods to outposts, requires certain raw materials depending on the thing being built. Rarer resources are more valuable by virtue of their rarity and are typically required for some high-tier upgrades or research projects in the later parts of the game.