In these two different equations for the same (?) thing, not only is one directly proportional to height and one is inversely proportional to height, but they contain completely different variables, and this is my confusion.
Additionally, in the second equation, we can see that the $U$ will decrease to 0 as the distance between the objects increases to infinity. This also confuses me, because my thinking would be that if you took two objects and separated them very far in empty space, they would come together because of gravity and they would both be moving pretty fast at the end of their journeys, but for this to happen we would need a high starting $U$.