If you examine the web page on the Great Western Vehicle website
Virtue, Understanding What is a Wholesome State you will see
It did not seem to be enough for either Siddharta Gotama nor for Patañjali to suggest one should simply erase unwholesome qualities from one's psyche, without replacing them with wholesome ones. Thus both mystics recommend the cultivation of "wholesome" mental qualities.
The 'Four Boundless States', or 'Houses of God' were the Buddha's idea of wholesome mental states. While the list of unwholesome states in Buddhism only matches partially with the Afflictions in Yoga, nonetheless both Siddhartha Gautama and Patañjali suggested identical wholesome qualities, which are friendship (metta), compassion (karuna), sympathetic joy (mudita) and equanimity (upekkha) (please see below).
Who came up with the list first is a hard question to answer because written literature was not common until after 65BC, so we do not know who came first with these ideas, but it is my opinion that Siddhartha Gautama came before Patañjali. We know Siddhartha Gautama predated Jesus by 250 years, and it is my opinion that Jesus was most certainly deeply influenced by Buddhism, and may very well have been consciously bringing Buddhist principles to the Jewish people of Judea, and later Persia after surviving his crucifixion.
The concepts of the 7 deadly sins and the Seven Heavenly Virtues comes from pre-Christian pagan ideas, which probably have their origins in the hindrances and heavenly abodes of Buddhism, but nonetheless are beneficial ideas, and were thus embraced by early Christians who came from Paganism before they embraced Christianity.
These virtues are also referred to in Christianity as the "fruits of the holy spirit." according to
Galatians 5:22-23 of the Epistle:
But the fruit of the Spirit is love, joy, peace, forbearance, kindness, goodness, faithfulness, 23 gentleness and self-control. Against such things there is no law.
The fruit of the holy spirit is contrasted with the works of the flesh which immediately precede it in this chapter.
19 The acts of the flesh are obvious: sexual immorality, impurity and debauchery; 20 idolatry and witchcraft; hatred, discord, jealousy, fits of rage, selfish ambition, dissensions, factions 21 and envy; drunkenness, orgies, and the like. I warn you, as I did before, that those who live like this will not inherit the kingdom of God.
I agree that we find these virtues represented in the world religions and are thus deep commonly held concepts that surely have their origins in prehistory.