right, it'd be great if that stuff could be built to support the housing before the housing gets built. but you can't do that either without people having a fit about wasting money building a road to nowhere, or buses just being for homeless people. the NIMBYism doesn't just apply to housing, it applies to building literally anything. often because people think they can block new housing development by opposing the infrastructure that might support it.
nothing about YIMBY is about opposing infrastructure development. we need to build all the things that humans need to exist - housing, infrastructure, recreation, businesses. build it all.
"we shouldn't build any housing until there's a highway" is just another variant of "i support housing, just not here". opposing housing because there's no bus route is still opposing housing. those are fixable problems.