The more frequent cause of a groan during flushing is due to the float valve slowly closing as the tank is filled. The water speeds up as the valve is almost closed, making a vibration like air through an organ reed. Adjustment or replacement is the cure.