They are not necessary, they are useful. They work best in relatively confined space (eg utlity room, downstairs loo but clearly do’t let water drip onto them from wet clothes) which has been warmed up to encourage the moisture to evaporate from the clothes. To dry clothes naturally you want lots of circulating air, for the dehumid the opposite otherwise you are sucking moisture from the “whole world”. They are pretty cheap these days.
I use them a lot on boats and in fact run one 24/7 all winter on a low setting combined with a low power tube heater to keep the frost off and to encourage the evaporation.
After a really wet race with very damp sails and gear a dehumid on full power will dry out the boat totally overnight particularly if you run the heater for an hour or two first whilst in the pub.
There was another thread on here asking same question. Have a search.