Proton definitely existed before the Steam Deck was released.
Proton had its initial release in 2018. I was using it on a linux desktop in 2019.
https://en.m.wikipedia.org/wiki/Proton_(software)
The Steam Deck came out in 2022, after ~4 years of Proton improving from masses of desktop/laptop users running everything possible through it on all kinds of hardware to (auto) generate bug and crash reports for Valve (and others), who then of course actually developed it up to... I think Proton was at either 7 or 8 when the Deck actually came out, now we are on 9, 10 will probably come out of beta and be official Steam default by the end of the year.
https://en.m.wikipedia.org/wiki/Steam_Deck
.........
Also, Proton was not created as part of the Steam Box Machine, that was way earlier, back in 2015.
https://en.m.wikipedia.org/wiki/Steam_Machine_(computer)
Also also, the 'Steam Machine' was really more of just a minimum spec requirement than a specific product, the idea was to try to get other manufacturers to take their own crack at the concept, got a small amount of buy in, but not much.