I went to this Coffee shop with WI-FI and only Apple products would connect. Why?

I went to this place to do homework on the go, and for some reason my HP laptop (4 months old) would not even discover the WI-FI network. I went with a friend and her iPhone would discover connect to their network. People around were using Mac books and their internet was working fine. My laptop is always updated and I have internet at home and school.

It's probably down to your personal settings on the Laptop, and not the cafe's settings

All Settings / network and internet / Wi-Fi / connect to suggested open hotspots / Hotspot 2 turn on
you could if ever have issues right click over the Wi-Fi icon / troubleshoot problems

Wi-Fi doesn't care if you are Android/PC/Mac/Linux.

It's your laptop that is the problem.

Its probably because your Wi-Fi card is not 802.11ac ie its not capable of the 2.4/5ghz modes.It may be N but its not ac.Whereas the newe devices may be ac capable.