In June 2022 Mojang started selling Java Edition and Bedrock Edition for Windows as a single PC package, and players who owned one got the other free. That left people who had already paid for both with nothing extra.
Mojang answered with the Vanilla cape, announced on Minecraft.net on August 15, 2022 as a thank-you to anyone who owned both editions on PC on one account before June 6, 2022. The rollout started on August 31, 2022 and landed in the Bedrock Dressing Room and the Java Skin Customization menu automatically.
The Minecraft Wiki notes that word of the cape first slipped out in an early Minecraft.net post a few days before the announcement. It was the first cape released on both editions at once; the Pan and Founder's capes were Bedrock-only at the time.
Design
The top half looks like a grass block and the bottom half like bedrock, a nod to Java and Bedrock coming together.