You will also gain experience points specific to the Mining skill tree when using a pickaxe to mine ores.