A lot of documents have to be submitted to the consulate to have your visa processed and land in a foreign country. One among them is a conformity that you have an accommodation in the country that you are planning to visit.
Spain is a beautiful country which is one of the major tourist attractions among other European destinations and is also a business center for most of the companies.