He checked and let you hang yourself. Pretty standard play. The getting max value i dont understand. You cant bet the river for value because hes unlikely to call with a weaker hand. You had showdown value but decided to bet and ended up losing alot more than you needed to in that hand.

Sure you gotta get max value but you also gotta try and lose as little as possible when your beaten