This took place to fulfill what was spoken by the prophet, saying, “Say to the daughter of Zion, ‘Behold, your king is coming to you, humble, and mounted on a donkey, on a colt, the foal of a beast of burden.’”
Matthew 21:4-5 and Zechariah 9:9
#yeshua didn't act specifically to fulfill the prophecy, but knowing that his actions would fulfill it.
The quoted prophecy is sometimes interpreted to mean two donkeys, but it's actually a parallelism. It's possible that Matthew specified that there were two donkeys so that those who believed that interpretation would still see the fulfillment.
https://rumble.com/v25wx6w-the....-two-donkeys-of-the-