There are currently only 19 US states that have a “right to dry” law in which you are entitled to hang your washing out to dry (source). Outside of the US, drying your clothes outside is the norm. But it is frowned upon in many communities within the US.
Most of this is due to privacy and aesthetic concerns. Essentially, neighbors don’t enjoy seeing your laundry on the line.
But it does seem to be becoming more accepted as we learn more about climate change and fossil fuels. Check within your state if it’s legal to hang washing in your backyard before doing so.