Or he received a message from his partner or someone (e.g. that I personally don't agree with: someone is bugging the Detective Agency above while Wada is there for backup) that they are finished with their job and that it is time to go, which is why Wada is giving Conan & Co. the poem because he wants to leave now and needs the case resolved.