It doesn’t matter. If they had a legal right to use the photo for whatever reason, then fine. Otherwise, they should not have used it.
That’s what stock use is. You are paid for a photo that is licensed for general use.
They had the right to use it, period.