Volume Attribution Social media Competition

What two factors make some search words expensive? Volume Attribution Social media Competition