Why is agar medium used in petri dishes

I typed your question into Google and found this. You could have done the same.

"Why is agar the preferred media for growing bacteria?
Agar is an ideal solidifying agent for microbiological media because of its melting properties and because it has no nutritive value for the vast majority of bacteria."