First sale was a non-MLS perhaps a FSBO at what looks like a very low price to a licensed realtor. Kinda looks like the first seller could have been a long time owner or someone who inherited the property. At that price I would say they got robbed but who really knows the circumstances around the sale.
The second sale was to another realtor in this area that has bought fixers and flipped them in the area. The second sale was for $560,000 four days after it was listed and based upon the asking price of $575,000 I would guess that no commissions were taken by the buyer/agent.