I don’t use any long commute trains where I would be able to sit with feet up, but on local metro and busses on the few occasions I travel by public transport my feet will go up, not actually onto the seat but on the edge.
Also, I’d imagine what makes seats dirty / less hygienic is the stuff...