It depends on the wording of a team’s contract as part of attending the tournament. In many cases it’s part of a contract which means it’s enforceable. Unless the hotel is completely substandard or does not have acceptable accommodation (i.e. double rooms were promised and single rooms were delivered).
This is part of a bigger sausage-making process.
Host team tries to procure sponsorships to hopefully be profitable or at least break even during a tournament. Otherwise, the costs for teams to play in the tournament would be much higher. The host team has to pay for ice time, officials, pucks, and any giveouts/handouts that are part of hosting. Ideally, the tournament would make money that would be churned back into the hockey team and/or its parent group.
Hotel(s) commit to offering rooms at a discounted rate in turn for being promised "X" number of rooms (plus, in many cases the hotel(s) will agree to pay a rebate to the tournament host for every room purchased…much like a commission, if you will). A hotel will contract with the tournament, and hold rooms for said tournament, potentially turning away business from other sources. In turn for doing this the hotel is promised the business and has a contract from the tournament stipulating that they will, in effect, buy "X" number of rooms for "Y" nights.
Logistically, forfeiting a team that spent money to travel to a tournament but stayed at the non-contracted hotel is brutal and optically looks bad, but it’s been done. It’s definitely the worst-case scenario.
Back to the sausage-making process…at some point your minor hockey team/association will host a tournament and likely make the same stipulations to visiting teams.