Samples are used for unlocking an entire category of upgrades in Helldivers 2. Without these, you'll miss out on a ton of ship upgrades that provide invaluable bonuses to your stratagems, which you'll need to beat the harder difficulty levels that contain rarer Samples needed for even more advanced upgrades.