Upwork interview question

Why you would use MongoDB vs PostgreSQL?