Have just googled:-
Powderpost beetles attack hardwoods, apparently because these woods have pores into which they can lay eggs; softwoods don't have such pores. ... Once they emerge, the winged adults spread to other wood surfaces where they deposit eggs onto unfinished surfaces or in cracks or other openings
They're probably looking for crevices to lay eggs