Software developers are not that dumb. The most likely scenario is whoever coded this knew what was going on (maybe not all the details) but chose to ignore, because paycheck. Same with other shady stuff like dark patterns, facial recognition (like Amazon's) and so on...
Also there is legality and then there is ethics. Something in the contract might be perfectly legal, and yet unethical.
Also there is legality and then there is ethics. Something in the contract might be perfectly legal, and yet unethical.