Deserts have extremely harsh conditions which is not ideal for a lot of heterotrophs to survive in. Additionally, the autotrophs found in this region are not full of a variety of nutrients which would meet the nutritional requirements of the heterotrophs.
Meanwhile, in the sea there are plenty of plants and organisms present to meet the nutritional requirements of heterotrophs and hence they can survive in the conditions on the sea.