I'm sure the robots are designed for something better than monitoring spills but they're only used for that. And most likely they won't be monitoring inventory any time soon.
Also, I don't understand why monitoring inventory has to be done this way, they already know what new inventory comes into the store and what goes out when the cashiers scan the items at checkout. Seems to me like the simplest solution is to subtract the two (actually a tiny bit more complicated than that since there's a running inventory). Just querying a database you can see what's on the shelves, what's expired, etc by tracking all the items virtually. And we're not talking about monitoring an amazon sized warehouse, it's just a supermarket..