Earlier quoted context omitted.
It's less logical even than that. It's almost every word. On the NYT homepage right now, for example, one story is "Justice Dept. Asks Judge to Block Texas From Enforcing Abortion Law". So "From" is capitalised but "to" isn't. Weirdly, scrolling down the page, the technology section appears to go its own way on capitalisation rules: "Apple's new iPhone 13 is better, but not by much." is followed by "Apple Issues Emer…
4-letter-long and above prepositions are capitalized. Can't remember where I got that rule, but they're probably using that; I use it for my music collection.
This is the guide I follow, and it would only capitalize preposition five characters or longer: