First, there is a moral issue: people who attempt to commit a crime are demonstrating that they are inclined/willing to commit a criminal act.
Someone who attempts to commit a crime deserves to be punished.