Your app has a "black box" data recorder that can often explain what happened.
If you want to learn from the experience and be able to avoid similar occurrences:
Go to DJI Flight Log Viewer
Follow the instructions there to upload your flight record from your phone or tablet.
Come back and post a link to the report it gives you and someone might be able to analyse it and give you an understanding of the cause of the incident.