Why do moths stick their butts in the air?

When I see a moth that has been sitting on my wall for a bit, they sometimes have the lower part of the abdomen sticking up.
Why?
4 answers 4