The laptop that died more

I got a HP laptop in this week which initially didn’t turn on. After removing the battery I managed to get it to start, but why? The battery? It wasn’t until I was testing the power and moved the hinge, then zap, puff, magic smoke.