Scrolls was Mojang's card game, later renamed Caller's Bane. The cape was its top competitive prize, and you had to win to get it. minecraft.wiki says that from November 7, 2014, finishing first on the weekly ladder on five separate occasions earned one. Mojang later added the Scrolls MINECON Open at MINECON 2015, where the top four also got the cape.
For launch day, December 11, 2014, the Scrolls account announced that Minecraft players would see a Scrolls cape for the next two days. The temporary version disappeared afterwards.
Mojang ended Scrolls development in June 2015. The wiki says cape awards stopped on September 30, 2015, when the team judged too few players were left for proper competition.