If you want to isolate plasmid DNA, you crack your cells open and carry out a miniprep, trying very hard not to get any contaminating genomic DNA in your sample. If you want genomic DNA, you crack your cells open in a different way and try to isolate as much of the stuff as possible.
I hope my answer has come to your help. Thank you for posting your question here in Brainly. We hope to answer more of your questions and inquiries soon. Have a nice day ahead!