Classical discussions of rebellion and highway robbery involve particular conditions, not ordinary disobedience, every political disagreement or all forms of theft.
The cited rule about funeral prayer is confined to specified historical legal categories and must not be generalized to every Muslim who commits a sin.