Pete could very well be right here. Anything that interferes with the radiation of heat from the ground to the sky is a real killer for frost.
This said, let me point out that 5 m is more than an adequate difference in height for the boundary between frost and no frost, particularly when the situation is not particularly cold but very quiet, very clear, and with a valley or basin in which cold air can form a pool. The surface of that pool can be well under a metre thick. I used to live on a farm on a hillside and cycle in to university of a morning. I had been well aware that on frosty mornings the air was much colder at the bottom of the hill than up at the house, where the air was merely cool. The first time I cycled downhill into the valley in suitable weather in winter, I got a considerable shock halfway down. My face hit a layer of cold air so abruptly that I responded with the diving reflex as if I had jumped into cold water. For weeks on end this would happen day after day, and if you were alert you could walk into the pool of cold air and tell when it had hit your face. The difference was nothing like 5 m, nor yet one.
And how is it possible? Well, if the air forms a cold, undisturbed pool, then it makes sense that the surface might be well defined.