When an item is sold it's stock level is reduced by 1, if it reaches 0 then you will see this message instead of the buy button.
If you have re-posted an item or an item was auto-reposted then the old post shows as out of stock. This keeps your overall stock in balance.