The rain physically erodes the rock and the acids chemically break down the rocks and carries salts and minerals along in a dissolved state as ions. The ions in the runoff are carried to the streams and rivers and then to the ocean.
Watch this video https://youtu.be/1qbUUGguJjE