You don't. Your phone needs to be on the internet tho. Personally I like this setup, it's simple and just works. And no issue about missing some messages or duplicate notifications (which is sometimes the case with multi endpoint apps).
Not the same wifi, but since web.whatsapp is pulling the data from your phone, they recommend that your phone be connected to wifi.