I doubt Canada cares when/how you travel between any country (US) and your home country (India), unless they expect you to be in the US to receive/send any paperwork etc. They probably only care about how and why you enter Canada. That being said I don’t know much about Canadian work permits and you should check the official website for its requirements to make sure you aren’t violating any of their constraints.