Speculating but the players likely sign consent forms that allow TN to run tests any time they receive medical treatment relating to their play with the team.
If its for weed then that's on him. He should have learned his lesson after he was given a pass the first time.
Hard to say though like a lot of posters have said before hospital just does not hand that out to anyone. Maybe he was given an ultimatum by someone else?