Its presence in Tuppence's coat was due to the fact that she had used it for pinning in some flowers a day or two before.
It was in Tuppence's coat because she had been pinning flowers with it.
Her coat was empty, and she had no idea where the object might be.