Unfortunately for the rebs, they invaded the western [pro-Union] part of Maryland, as opposed to the eastern [pro-Confederacy] part of the state. They even brought along weapons, etc, to issue the new troops they expected to raise.
Lee's soldiers also brought with them several wagonloads of shackles for kidnapping blacks in Maryland and Pennsylvania and dragging them to slavery in the Confederacy.