Using this logic, one could argue that using the WSGI and psycopg directly would teach you even more.
Django/Flask is a core part you need to understand in your stack to be productive whereas WSGI/psycopg are random details you don't even need to understand to make use of.