Why do all salts crystals have a distinctive cubic shape? And what happens to these atoms during this chemical reaction?

Please answer!!!!! :) I have no clue of what this answer is!!