There is a program which looks for ended auctions and executes the transfer, sometimes however it can't do its just immediately because something else is updating the database, so during other updates it can take a little longer.