i doubt there is an answer the koran is a mediaeval document with many logical holes in it one is expected to just accept that these beings are created in heaven like angels and exist to comfort the faithful dead i don't think anyone is claiming that it makes sense heaven doesn't exist after all