My laptop open up to start windows automatically why

Solution
your laptop is probably set to hibernate or sleep, it probably shuts down when you close the lid, right?

you can turn this off if you don't like it