Piece values come from long experience
An early Shatranj writer gave values of rook 5, knight 3 and a third, general 1 and two thirds, and counted a kingside elephant above the queenside one because it works with the general.
From Schmittberger, 1992, p. 188. Schmittberger, R. W. (1992). New rules for classic games. New York: John Wiley & Sons. ISBN 978-0-471-53621-5.