The more data these algorithms have the more regressive they can get.
A very poor person likely has fewer choices in grocery stores (food deserts), less time (multiple jobs), and fewer resources (public transport/gas prices) to be able to shop around. Items they can afford they can't live without so they would have to spend whatever price they put on them. They don't have a choice.
Compare that to a middle class family that already may shop at multiple grocery stores, and likely has access to Amazon Prime/Walmart+ or whatever to get groceries on demand (same algorithms are there but I guess we don't care to regulate those). Stay at home parents with extra time to shop around to maximize savings, etc.
A lot more competition so they can't raise prices on you as easily, as long as they aren't colluding with their competition to keep prices higher.