It may go by waiver wire priority, which is determined by team record. But I'm not sure if waiver wire priority is recalculated after each game, or once a day when waiver claims are processed at the 3am cycle. I've never bothered to check.
If it's the latter, then there could be a lag in which you have a better record in the evening, but started the day either tied or a game behind in the morning. Which would explain the rejection.