My surgeon had me wearing something like this after my knee replacement, but he had his PA cut them off after 2 weeks.
To reduce swelling and helps against blood clots forming..............