What could be wrong with a new bathtub faucet dispensing rusted water for the first 3 seconds when turned on?

I bet somewhere in the faucet the installer used a black iron nipple for the spout or shower head. The nipple rust very quickly. A few seconds of water rinses it out. The nipple will start leaking in the future.