Walmart and other big chain stores do that because the law in the USA allows copyright owners to sue and collect damages from the store that does the copying, even if they do not know the item is copyrighted or who owns the . You may not get much money from your customer since wedding photogs' customers are usually not wealthy people, but the store is wealthy and stores have been made to pay a lot of money in such cases.