Doesn't make much sense, i'm aware, but if you took the Phantom design, then take out their wings, what do they look like? A worm. The Phantom design has always been a weird one, it doesn't look like any bird or other flying animals. They have no legs to perch on, it's just one long body with wings.
We know there are cases like the piglins, where they were originally pigs that became humanoid-bipedal on the nether and then becomes zombified back in the overworld. Silverfish might have underwent the same evolution process similiar to the piglins.
"But phantoms don't spawn on the Nether" i hear you asking. Well, where do you often find a silverfish spawner? Near the End portal. This would also explain why the ingredient needed to fix an Elytra is the Phantom membrane, in fact Elytra might have been taken directly from the Phantoms themselves, with little modifications to allow for human flight.
After all the Elytra was the builders product, it doesn't look like anything that comes naturally from the End where their main way of transportation is to simply teleport. (save for skulkers that makes things float, but that's not really a way to travel is it? more like a defense mechanism)
And that's my take on what the Phantoms really is. As for why they specifically targets sleepless people however, i have no clue. Maybe just a preferrence in hunting? Maybe they were originally breeded and trained for search and rescue like RGN suggests? idk, but i'm very certain that Phantoms really is just a flying bug.