In MySQL replication, why aren't queries run on the slave when there was no USE statement on master?
Please provide the relevant my.cnf entries.

If you have

binlog_do_db = B
-- Note:  That implies ignoring other dbs


and you do

USE A;  -- either explicitly, or due to the connection parameters
UPDATE B.tbl ...;


That UPDATE will be ignored.