Generators go on the 17th floor so they can vent out exhaust and heat. Pumps need to go in the basement because you can only suck a liquid up by one atmosphere, which is something like 30' for diesel, but you can push a liquid up basically as high as you want. (Also, stating the obvious, the diesel tanker trucks are gonna be street-level, so you'd need pumps there anyway if you put the actual tanks higher.) This does, are you're pointing out, kinda stink if the pump itself is flooded, but the design's common and does make sense
I see. I thought it was an emergency power generator they brought in for this incident. When you see that sort of thing for buildings, usually it's just a big trailer on the sidewalk hooked up to the building mains.
In firefighting it is quite common to take in surface water using a submersible pump which is hydraulically driven by an engine on land - like the fire truck or a dedicated diesel. See for example [0][1]. Doing it this way means you aren't limited by elevation and don't need to carry special suction hoses for water intake.
It makes me wonder if anyone is paranoid enough to do the same for highrise fuel pumps: sure, the basement may flood, but when the pump in there is designed to flood it's a lot less of a problem! Place the actual power source several floors up, where flooding is impossible outside a The Day After Tomorrow-esque civilization-ending catastrophe and you should be fine.
[0]: https://hytrans.com/product/hydrosub-150/
[1]: https://www.youtube.com/watch?v=pLJT4On5naA