Hi,
That's normal. By default the order_number is based on the order id, an incremental integer incremented for each order created.
And the invoice number is based on the invoice id, an incremental integer incremented for each order confirmed.
So once you have an order which is created but not confirmed, the next confirmed order will have an invoice number based on an invoice id different from the order id.
Now if you want to base both numbers on the order id, you can use the "invoice number format" and the "order number format" options of the HikaShop configuration.