I don't know about that. Thinking about the four universities I've got experience with, the only one that didn't have someone checking IDs at the door of the library was the small one that probably couldn't afford it.
In Toronto, the the UofT libraries are accessible to anybody. However, I did once get kicked out of the Law Society of Upper Canada library when I mixed up Osgoode Hall with the Osgoode Hall law school when I was doing research for a high school class, and I'm still bitter about that.