Nintendo has previously stated that play time is split 50/50 across docked and handheld mode. How that holds up in the years since and with the introduction of the Switch Lite I don't know but it seems a pretty solid indication that it's more than just a trick.
https://arstechnica.com/gaming/2018/06/nintendo-docked-and-u...