Or maybe the parent had the stroller folded but after boarding unfolded the stroller and put the child back in.
Regrettably, bus drivers cannot be expected to physically enforce any rules. A manager could be summoned, via 2 way radio if needed, or the alleged violator subjected to shaming by others nearby.