As thousands walk out of classes, Downing Street says their absence "increases teachers' workloads and wastes lesson time".