Hi, thank you for contacting JustAnswer.com. My name is Russell. I will do my best to provide the right answer to your question.
If the power switch or power button is triggering falsely, then that could be causing the problem, by the Power button being partially depressed or pressed-upon, already. Any slight extra stress, bending, or pressure on the Power or On button, could turn the Nexus 7 On again.
How old is the Nexus 7 in question? measured from its purchase date.
Thank you for bringing your question to us here at JustAnswer.com.