Did someone create the tunnel a very long time ago, or did the Room of Requirement create it as soon as Neville and co got hungry?
And how did he get into a tunnel while being in a room starting on the 5th floor or is it just rearranging all the time?