Mid lane is for champions that scale with levels better, and top is for champions who can solo lane but need a little farm (tanks, bruisers). Part of Irelia's kit is sustain up the butt, which is great against most top laners. It doesn't do much against those who can nuke her before she can buy items (which is why she can easily beat midlaners who go top: you won't hit level 6 as fast, you can recall and get some items pre-6, teleport in, and beat them while they're still weak).
Also, she has no escape. Top lane is easier to avoid ganks in with just movement speed if you're warding properly, but mid laners typically have long-distance cc to coordinate a gank with since the jungler has less distance to cover.