Many companies buy back shares when it doesn't really make sense. For example companies with heavy debt loads buying back shares using leverage. The airlines were pretty bad about this.
Management often has poor/ short term motivations based on short term share price which can be devastating to companies.