its property law.
under the law of real property, you have the right to use and enjoy your property according to preference
it is the preference of the gym that they dont want external people effing up there buisness :) so its under property because they OWN the gym, as to what they do with...