From Old Galician-Portuguese valia, corresponding to valer (“to be worth”) + -ia.
Practice speaking and memorizing "valia" and many other words and sentences in Portuguese.