The consumption of alcohol which passenger took on the plane is restricted for safety reasons.
The cabin crew is a safety agent who takes care of the cabin safety and always looks at the cabin environment as a top priority. Due to the in-flight condition, drinking alcohol can be physically critical.
That is why the cabin attendant should take care of the alcohol sales and passenger's condition in order to maintain a pleasant environment, along with the safety of other passengers.