I don’t think Hoid knows why he was there.
we know the power/gift he has is for him to be in the right place but not always knowing why, I think this is an example of that.
I’m sure it will be made clear at some point though because it is weird and sticks out in the book.