In the second example, it's likely that you still left money on the table. They almost certainly gave you the lower/midrange of your projected band which was likely significantly above the number you gave.
Hard to say from a blurb whether the situation is an outlier, just generalizing here based on on basically every salary discussion I see on the hiring side.
Hot market, they bumped me to mid-high for that band. the real move would have been to go up a band but it turns out it didn't matter in the end