Beyond the TOS nobody reads (not even sellers), this sort of difference might be due to a number of factors. It could well be that they provide rooms discounted to Booking.com because they want to fill a certain amount no matter what, and then do price-anchoring for other rooms on their website. This is more or less like them giving rooms massively discounted to package sellers (Thomas Cook etc).
I don't even if this is legal in your country, but in Germany they ruled against it: https://www.thelocal.de/20210518/germany-upholds-ban-on-book...