This was a symbolic act to indicate to the unbelieving people that God had rejected them and would punish them.