Interesting - normally this type of info is needed for a money mule scam or a deposit scam.
In those someone deposits money and then the person with the account (who is generally helping to money launder funds) forwards a portion to another person (often overseas to help criminals).
In other cases the deposits bounce after being made, but the person had already forwarded a portion of the funds to someone else.
US-CERT has more guidance here:
In other cases if you have sold a home you may be asked basic banking information so the escrow company can deposit funds in your account, but it doesn't normally require things like scanned ID and swift code (red flag items). Many companies can just send a check which of course works well.