So what exactly is your point? When the behavior of bees and termites and birds building nests has been carefully investigated the rules for their construction behavior turn out to be very simple and involve no knowledge or calculations.
You are not going to like my answer so let me ask you a question instead.
Did we invent or discover mathematics? That is the fundamental question.