When did James' dad give him the cloak? Does it even say when he did? I would guess when he first started school, but his dad could've needed it for something.
I would love for you to give me your opinion if there isn't a real answer. I can't think of anything good. :D