Mathematical relationships are, to a large extent, built into the physiologies of living organisms. Where humans have difficulty in understanding mathematics is in the symbology; they cannot relate the written format to the innate knowledge.
I’m not surprised that an insect would “understand” basic mathematical relationships. After all, they perform feats of advanced mathematics whenever they fly from one place to another and land perfectly at the spot they wanted.
You need to make the distinction between knowing how and knowing that. The wasp knows how how to execute a perfect turn-to-base and final approach, but presumably is ignorant of the flight equations making possible its performance or knowing that the Bernoulli effect is involved, etc.