The iPad was and is one of the most successful electronic products ever. It's growth has absolutely slowed down, and is in a slight contraction right now, but it's still selling over 40 million units per year (from a peak of ~70M per year). To compare, Apple sells about 19M Macs per year.
The iPad can only be claimed as a failure compared to investors' expectations, or compared to the iPhone. In the most recent quarter (Q1 2017), Apple sold 13.1 MILLION of them. Over 6 billion dollars of product sold in one quarter sounds pretty great to me.
Sure, from a capitalist perspective it was a great product. It created an entire market and earned lots of revenue.
However, ownership more than doubled and internet usage stayed flat/declined. We succeeded at making people want something, but it was not something they needed.
Tons of sales because it's cool, then people realize they have no idea what do with it.