If they outbid everyone who actually wanted to live there, who were they planning to sell to? :P
Buying things you think are underpriced and reselling them is not frontrunning. (Ever since GME, a lot of people learned the word frontrunning and started using it in every possible situation.)
Zillow's plan was to act as a market maker. Market makers make a profit by buying things and then reselling them for slightly more. The difference is called the spread, and it's how market makers make money. Another example of a market makers is used car dealerships. Despite maybe seeming like a useless middleman, the reason market makers can exist is because they provide a valuable service to the buyer and the seller. They provide liquidity: you can go to a used car dealership and buy or sell a car today, instead of having to find someone to trade with directly. (If finding someone without a middleman were just as easy, the buyer and the seller would both benefit from just trading with each other directly. But they don't, which indicates that used car dealerships are actually providing a useful service.)
Zillow wanted to be a market maker for homes. They have a lot of data and thought they could use it to find homes that were underpriced, make a cash offer (benefiting the purchaser by giving them more liquidity via the faster sale), then quickly resell it. Their pricing algorithm didn't work, though, and they lost money. C'est la vie.