The markets are dynamic and constantly changing. Many times, there aren't enough stocks at the price at which you have placed an order. In this case, orders that can be completed at the desired level are completed and the remaining orders are executed at the next best level.