Apple hedge foreign currency

Why do some companies like Apple hedge foreign currency sometimes and
not at other times and companies like Walmart decide not to hedge currency
at all?