Is it common on a hot day to have the winds only close to the ground? Common, no, but it happens. As a glider guy what comes to mind is local thermal activity. If the sun is shining and it's between say 10am and 6-7 pm, a thermal anywhere on or near the airport can upset the best laid plans. A thermal taking off vertically can cause a tailwind, an updraft and a headwind, all within the course of a half mile or less and on a day with nothing but light and variable winds. Think the opposite of a downdraft. But I'm not saying it happened, just saying it can.
Sorry if it seems like an interrogation... again you did just fine. The only thing I question is "I know my error". First of all it's not clear that you made any. You shared because you are a bit confused by what happened and so am I. Just file it all away for future flights and keep learning.
BTW, the lesson I'm taking away from this is that I should always be willing to go around if things don't seem right. A bad habit I carry around is treating airplane landings like glider landings, landings where you absolutely, positively, must land the ship in a single pass, even if an airport is nowhere to be found. Always learning...
Happy Flying!
Sent from my iPad using Tapatalk