That time rewind information would still be surprising if it was revealed a chapter before...
Seems like they infested the test subjects with some kind of alien parasite that grant them "magic".
Another thing for Murakami to blame himself, not only letting Kuroha to die but also being a host to that thing.