Duality between preferential attachment and static networks on hyperbolic spaces