A hotel or motel that provides free WIFI access to hotel or motel guests can look in the WIFI routers logs and proxy devices and see your browsing history.
Mos hotels and motels really don't care what websites you're browsing on their internet service though and only care that you're a pay hotel or motel guest.
The hotel and motel don't really look up your browsing history or logs unless you did something illegal and the police or FBI alerted them of something.