The Spanish king at the time, Charles III was also known for having a penchant for just about everything related to science, and had already procured funds to further develop science and technology in several areas.
Additionally, the Spanish government had a vested interest on all issues concerning the Pacific Ocean because a large number of her colonies were in that area, including most of the American Pacific coast, the Philippines in Asia, and several islands, such as Guam.