The Roman Catholic Church in Spain gained power by spreading the religion throughout its country also priests are the only ones that could read or write back then so technically even though there was a king priest gave orders. Since they knew how to read and write hope this helps you!