This is really odd, not much to say about it.
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 8.5, Release Date: 2018-12-22 │
│ Using Python 2.7.15. Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘

This is just basic algebra, namely laws of exponents:
$(t-1)^2 = (-1(1-t))^2= (-1)^2(1-t)^2 = (1-t)^2$