This is the default behavior, you can change it. See Library Dependency Finder (LDF) — PlatformIO latest documentation
Nevertheless, just add #include <Wire.h> to one of the file from your project (not a library) and PIO will build it. Or… you can use lib_deps = Wire.
In any case, please read Redirecting...