Apple let a movie piracy app reach #2 in Entertainment in the U.S. App Store

Apple approved a movie and TV show piracy app in the App Store, then let it reach #2 in Entertainment and #18 in Top Free in the U.S. before finally taking it down. Exactly how safe is the App Store if this indicates the lack of quality of Appleā€™s review process?