When you say something is a "piece of cake," it means it is very easy to do.
In the 19th and early 20th centuries, African
Americans started "cake walks." They walked or danced around a cake in pairs, and the best couple won the cake. This is how the idioms "cake
walk" and "piece of cake"
came about -- both meaning that something is very easy to do.