Different strings have different thicknesses. This effects how fast the string vibrates which changes the sound.