As I recall, happiness affects the florin output of the province. Happy people are happy workers who produce more. Loyalty affects the likelihood of the people rebelling. It is possible to hate the king but like the prosperity he brings and visa-versa.