Rust is iron oxide, and a conductor of electricity. I've seen bikes with very fine rust in the tank, that repeatedly fouled plugs. The rust was fine enough to be carried in the fuel stream, and onto the spark plug - where it eventually caused a short.
Well, not quite a short, but a less-than-infinite resistance - and that's fouled.