In reply to laarens:
Because a wildcard import statement does not import everything in package a_pkg; it only makes symbols candidates for importing.
The LRM says
Symbols that are candidates for import but not actually imported are not made available.
The symbol a_class must have a reference in b_pkg to be exported.
package b_pkg;
import a_pkg::*;
import a_pkg::a_class; // (1)
export a_pkg::a_class; // (2)
a_class a; // (3)
export a_pkg::*;
endpackage
Any of the statements (1), (2), or (3) will cause a_class to be exported.