Though the bike may not have any pedals on them when shipped to dealers,
the Mechanic will install some simple ones on them to test ride it,
after finishing their assembly job.
Often some will be included for the purpose, just for customer test rides.
very un fancy ones..
if buying a top tier road bike:
Most pedals that come with bikes are throw aways, anyway...
so from a best of everything perspective, functional, in the interim, is that.
Those people will, likely, bring their shoes and pedals with them.