Let us reassure you, this is not a bug and these resources do not take free space in the warehouse. They cannot be removed from the warehouse, because they are important quest resources, required for several islands’ quests, and as long as there is a limited amount of these items on story islands, this way they can be protected from careless actions in the game.