pg_stat_activity.When wait_event_type is null and state is active, is the session waiting on CPU? Can't quite figure out what PG is doing under those conditions.
Per the “active” its executing a query. Since its not “waiting” on any specific internal-to-the-instance resource it is either just doing its thing or, as you noted, waiting to be given a CPU by the O/S.
David J.