Ray-Ban is part of EssilorLuxottica. They own pretty much every single (sun)glasses brand on earth. I'm sure someone in their organization has made the decision that Ray-Ban was the best fit for a brand in their portfolio to do something together with Meta.
Also, you're right about the niche. A lot of 'normal' people probably don't even have a clue that Meta and Facebook are the same thing.