Money is a function of demand, availability and leverage. Value is only an indirect part of it: a factor that drives demand.
It is easy to find examples of money not being a judgement of value in practice: think about thief or extortion for example, or pushing drugs.