 This is called 'enchanting' an item.A weak weapon or armour can be formed into a stronger item without having to sell it and buy a new one.This can also substantially increase both the item's in-game market value.